Question
ld64 fails when packaging for iPhone simulator
Trying to package for iPhone simulator (ipa-test-interpreter-simulator) on a Mac with OS X Big Sur, using iPhoneSimulator SDK 14.3 and AIR SDK 33.1.1.345.
It fails with error "building for iOS/iOS Simulator, but linking in object file built for macOS".
Complete error message follows:
ld: in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/../../../../../usr/lib/llvm-gcc/4.2.1/libgcc.a(libgcc.o), building for iOS/iOS Simulator, but linking in object file built for macOS, file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/../../../../../usr/lib/llvm-gcc/4.2.1/libgcc.a' for architecture x86_64
Compilation failed while executing : ld64
adt command line:
adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore cert/certificate.p12 -storepass password dist/myapp.ipa "application.xml" -C bin . -extdir lib -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/
How to fix this, or is this a bug in AIR?
