Skip to main content
Infin8
Inspiring
Apr 23, 2018 7:00 AM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
pravishtis
pravishtisCorrect answer
Adobe Employee
May 8, 2018 3:07 AM UTC

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

7 replies

Known Participant
Oct 10, 2018 7:27 AM UTC

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.

Translate
pravishtis
Adobe Employee
pravishtisCorrect answer
Adobe Employee
May 8, 2018 3:07 AM UTC

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

Translate
Infin8
Infin8Author
Inspiring
May 8, 2018 8:04 AM UTC

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.

Translate
Inspiring
Jul 25, 2018 5:34 AM UTC

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!

Translate
Infin8
Infin8Author
Inspiring
Apr 23, 2018 11:45 AM UTC

Thanks for your reply.

Translate
Known Participant
Apr 23, 2018 11:21 PM UTC

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.

Translate
pravishtis
Adobe Employee
Adobe Employee
Apr 23, 2018 7:48 AM UTC

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

Translate