-
-
Notifications
You must be signed in to change notification settings - Fork 473
Closed
Labels
Description
Describe the bug
When building the example library with PLATFORM=OS64COMBINED, a binary containing only arm64 is produced. I was also unable to manually persuade Xcode to build a fat archive from the generated Xcode project; it seems to only build the selected architecture.
To Reproduce
Steps to reproduce the behavior:
- cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DPLATFORM=OS64COMBINED
- cmake --build .
- objdump -s Debug-iphoneos/libexample.a (produces Debug-iphoneos/libexample.a(HelloWorldIOS.o): file format mach-o arm64)
Expected behavior
I expected a FAT archive containing x86_64 and also arm64.
Environment
- What version of CMake did you run? 3.22.2
- Your faulty CMakeLists.txt here:
< the example-lib CMakeLists.txt >