ios-cmake
ios-cmake copied to clipboard
[question] I want to compile FAT files containing armv7 and arm64, what should I do?
I want to compile FAT files containing armv7 and arm64, what should I do?
compile for desired platforms separately, then use lipo to merge binaries. Here's an example: https://github.com/kambala-decapitator/vcmi-ios-depends/blob/main/build_depends.sh#L233
@kambala-decapitator I see that you removed the lipo command execution from the file you are mentioning (29 days ago). Was there a specific reason for that or do you no longer need it?
My issue is that I'm trying to build for the iOS + iOS Simulator combined fat library, but the flag OS64COMBINED doesn't seem to work.
@arsdever I don't merge device and simulator builds because both contain arm64 slice.
but per-platform merge is still there, see https://github.com/kambala-decapitator/vcmi-ios-depends/blob/main/deps/nullkiller/tbb.sh#L71