-
Notifications
You must be signed in to change notification settings - Fork 111
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
Getting error: "have the same architectures (arm64) and can't be in the same fat output file" #71
Comments
I'm not 100%, but I'd guess the problem is that it's trying to pack the iphone-arm64 and the iphonesimulator-arm64 architectures into the same binary. They're different SDKs so I wouldn't think it would have a problem, but maybe because they're both arm64 the SDK might not matter? (Are you running an M1 or an Intel Mac?) You might try either omitting the |
Yep, that's what I mean. There's not currently a CLI parameter to specify simulator arches, so you'll have to edit that line. I'm pretty sure that arch was added for M1 Macs, but I don't have one of those so I'm not 100% on that. |
I've removed arm64 from IOS_SIM_ARCHS, delete intermediate files in src and build subfolders Build log are pretty much the same :
|
Hmm, it looks like there's a couple other places that's adding arm64 back to the IOS_SIM_ARCHS array.
and this is one is just below it on 605
Try removing the "arm64" from those too (or maybe just comment out the whole block?). The second one I think is skipped though because you're targeting iOS 10.2 so that shouldn't matter. Also, before running the script to build, run |
@faithfracture Thanks for advice, this worked and brought me to the next fail: Looks like for some reason it's not building boost locale:
|
@faithfracture is there any guidance on building boost.locale for ios ? |
I don't use that Boost component, so I'm not really sure. I remember something about this in the past, but it's been so long that I don't remember what the issue was. Some Boost components depend on other ones. Can you try |
@cryptozoidberg see #64 |
For some reason build fails with this error:
iphoneos/arm64/libboost_system.a and iphonesimulator/arm64/libboost_system.a have the same architectures (arm64) and can't be in the same fat output file
Command line:
./boost.sh -ios -j 4 --boost-version 1.73.0 --ios-sdk 13.4 --ios-archs "armv7 arm64" --min-ios-version 10.2 --universal --boost-libs "system filesystem thread timer date_time chrono regex serialization atomic program_options locale"
Is there something wrong with my command line?
XCode Version 12.3 (12C33)
MacOS BigSur 11.5.2 (20G95)
Full build log:
The text was updated successfully, but these errors were encountered: