Skip to main content
yvonr48835710
Participant
December 31, 2020
Question

ld64 fails when packaging for iPhone simulator

  • December 31, 2020
  • 2 replies
  • 179 views

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?

 

This topic has been closed for replies.

2 replies

yvonr48835710
Participant
December 31, 2020

Another addition: There are lots of posts of similar issues on Stackoverflow, and the solutions all pertain to building in XCode itself, not using a 3rd party tool like AIR. One post suggestes that the problem didn't appear in XCode 12.2, so I reverted to 12.2 but I still get the same error.

yvonr48835710
Participant
December 31, 2020

Addition: I'm using XCode 12.3