-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-compilation for iOS fails after upgrade to Big Sur (macOS 11) #8359
Comments
Tell me if I can help in any way. |
I tested this and could make it work by adding these entries to the cross file's
I also had to set SDKROOT. Presumably there is also a command line argument you can give to the compiler/linker to make it work, but I don't know enough about macOS to know what that might be. |
Thank you very much! This solved it. :-) Did I miss anything in the documentation or is this a "try-and-error" thing? |
Problem solved. |
Short update: |
Describe the bug
After updating a system to macOS 11 the cross compilation for iPhone fails with the message
I attached the succeeding and failing meson-log files:
After
and retrying on macOS 11, I get the following hint in the log file:
which indicates, the xcodebuild expects some architecture parameter.
If I use the clang++ command from the meson-log.txt and
-arch arm64
to the command-linethe setup succeeds on macOS 11 and
file output.exe
results inoutput.exe: Mach-O 64-bit executable arm64
.So, how do I have to modify the meson.build for a succeeding build?
To Reproduce
meson.build
prog.mm
cross-file.txt
Setup
Expected behavior
Finish the setup without error and
meson test -C build
should run but should skip the test.system parameters
meson --version
: 0.56.0 (but 0.57.0 fails, too)ninja --version
if it's a Ninja build: 1.10.2The text was updated successfully, but these errors were encountered: