Skip to main content
Infin8
Inspiring
April 23, 2018
Answered

Cannot compile AIR app with Xcode 9.3 iPhoneOS11.3.sdk

  • April 23, 2018
  • 4 replies
  • 2526 views

After updating MacOS to 10.13.4 and Xcode to 9.3 I can no longer compile any AIR app when the path to the iOS SDK is set.

i.e. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk

This is building against the latest AIR SDK 29.0.0.122

Animate 18.0.1 Build 115

I get the following error:

Invalid Input

ld: unexpected token: !tapi-tbd-v3 file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/usr/lib/libc++.tbd' for architecture armv7

ld: unexpected token: !tapi-tbd-v3 file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/usr/lib/libc++.tbd' for architecture arm64

Has anyone any idea if there is a workaround for this?

Thanks,

Mark

This topic has been closed for replies.
Correct answer pravishtis

Hi,

Could you please try once with following workaround and let us know if things are working fine for you:

  • Replace the Runtime LD located at the path <AIRSDK>/lib/aot/bin/ld64/ld64 with the one which comes with Xcode 9.3.
  • You can find it at location: <Xcode9.3InstallDir>/Xcode.app/Contents/Developer/usr/bin/ld.

Also, do not forget to rename ld to ld64.

Thanks,

Pravishti | Adobe AIR Engineering

4 replies

Known Participant
October 10, 2018

Well, funny thing is AIR 31 is still not working with Xcode 9.4. One has to manually replace 'ld' in the AIR subdirectory.

Crazy, crazy, but we still love AIR , Starling and Feathers so much.

pravishtis
Adobe Employee
pravishtisCorrect answer
Adobe Employee
May 8, 2018

Hi,

Could you please try once with following workaround and let us know if things are working fine for you:

  • Replace the Runtime LD located at the path <AIRSDK>/lib/aot/bin/ld64/ld64 with the one which comes with Xcode 9.3.
  • You can find it at location: <Xcode9.3InstallDir>/Xcode.app/Contents/Developer/usr/bin/ld.

Also, do not forget to rename ld to ld64.

Thanks,

Pravishti | Adobe AIR Engineering

Infin8
Infin8Author
Inspiring
May 8, 2018

Using 29.0.0.122 this has no effect.

But compiling against AIR 30.0.0.85 the issue seems to have disappeared.

I'm not sure if 30.0.0.85 would have fixed the issue without changing the ld file though.

Inspiring
July 25, 2018

I also had the problem of the ld: unexpected token: !tapi-tbd-v3 file message, which i presume indicates that the latest Apple loader has to be used, else things don't link any more. That they have modified the linker shows they are messing around at the deepest level in OSX. Very worrisome, the loader is the oldest part of every operating system, and precious few people know how loaders work exactly. Thanks for posting this workaround, without it i would be dead in the water!

Infin8
Infin8Author
Inspiring
April 23, 2018

Thanks for your reply.

Known Participant
April 23, 2018

please fix this issue for windows sdk too.

all air sdk 29 realeses have many issues with codesign and ld64   

also www.adobe.com/go/air_ld64 not working at all. just an empty page.

all win ld64.exe has timestamp 5 year ago.

pravishtis
Adobe Employee
Adobe Employee
April 23, 2018

Hi,

Thanks for reporting. This issue is known to us and we're working on it.

As a workaround, you can try with older Xode i.e. Xcode 9.2 or below.

Let us know if you still face issues.

Thanks,

Pravishti | Adobe AIR Engineering