Post

Replies

Boosts

Views

Activity

Reply to Simulator ARM64 Support for Static Libraries in M1 Machines
Thanks for the prompt reply. In order to generate the XCFramework for the static library, we generated 2 binaries, one with arm64, armv7 architectures (Device), and one with x86_64, arm64 architecture (Simulator), when we run the 'xcodebuild -create-xcframework' command and pass these two binaries, we are prompted with the following error related to the Simulator binary: 'error: binaries with multiple platforms are not supported' We are building the Simulator binary using clang and passing the following options: arch arm64 -isysroot iPhoneSimulator14.2.sdk -miphoneos-version-min=9.0 -fembed-bitcode Our question is whether or not this seems like the right approach to properly build an arm64 Simulator binary in order to avoid the above error where xcodebuild doesn't recognize that the arm64 arch should be for Simulator platform? Thanks.
Feb ’21
Reply to Simulator ARM64 Support for Static Libraries in M1 Machines
Thanks for the information above, it is very helpful. We ran the command as you mentioned above and here is our output: ... Load command 1 cmd LC_VERSION_MIN_IPHONEOS cmdsize 16 version 9.0 sdk n/a Load command 2 cmd LC_SYMTAB cmdsize 24 symoff 16364 nsyms 290 stroff 21004 strsize 4056 ... We did not see a "platform" value, does this mean that the library was generated incorrectly? As a next step, is there anything you would recommend to help generate arm64 simulator build properly and have XCFramework recognize the proper platform of each static library. Thanks.
Feb ’21