Skip to content

iOS combined builds are broken in Xcode 13.2.1 [bug]  #154

@SirWhiteHat

Description

@SirWhiteHat

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:

  1. cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../../ios.toolchain.cmake -DPLATFORM=OS64COMBINED
  2. cmake --build .
  3. 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 >

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions