ios-cmake icon indicating copy to clipboard operation
ios-cmake copied to clipboard

[question] I want to compile FAT files containing armv7 and arm64, what should I do?

Open hhuwenjun opened this issue 3 years ago • 3 comments

I want to compile FAT files containing armv7 and arm64, what should I do?

hhuwenjun avatar Jan 04 '22 01:01 hhuwenjun

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 avatar Feb 14 '22 11:02 kambala-decapitator

@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 avatar Aug 17 '22 08:08 arsdever

@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

kambala-decapitator avatar Aug 17 '22 08:08 kambala-decapitator