Skip to main content
JarSyr
Known Participant
September 27, 2016
Answered

Compilation fails with Xcode 8

  • September 27, 2016
  • 2 replies
  • 5789 views

I'm getting the following error while trying to compile to iOS with Air 22 and 23 with Xcode 8 and Apple iOS SDK version 10.0.

Failed to package AIR application xyz.ipa:

  Warning: The path to platform sdk should end with iPhoneOSx.x or iPhoneSimulatorx.x format to avoid any unintended behavior.

  ld: unexpected token: !tapi-tbd-v2 file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/usr/lib/libgcc_s.1.tbd' for architecture armv7

  ld: unexpected token: !tapi-tbd-v2 file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/usr/lib/libSystem.B.tbd' for architecture arm64

  Compilation failed while executing : ld64

Any workarounds?

This topic has been closed for replies.
Correct answer abhijain19

Hi,

Thanks for reporting the issue. You can use this workaround to package your app with iOS 10 sdk.

First, check the version of your system ld through the command: /usr/bin/ld -v

It should be ld64-274 for Xcode 8.

If it’s not, you need to upgrade the system ld to understand the tbd files. In case of multiple Xcode installed on your system, you can follow the below instructions to resolve the issue:

1. Go to the Xcode Preferences.

2. Click on the Locations tab

3. Change the Command Line Tools option to Xcode 8.0

Now check your system ld version, it should change to ld64-274.

Also copy paste this updated system ld to AIR SDK location /AIRSDK/lib/aot/bin/ld64/ and rename it to ld64.

Now restart your Flash Builder and try to build your app, it should work now.

Thanks,

Abhishek

2 replies

jonathanhartsf
Participant
November 29, 2016

The workaround works for me, but one caveat for Feathers SDK users is that they will have to apply the fix in the Feathers SDK directory, not the AIRSDK directory.

abhijain19Correct answer
Adobe Employee
September 27, 2016

Hi,

Thanks for reporting the issue. You can use this workaround to package your app with iOS 10 sdk.

First, check the version of your system ld through the command: /usr/bin/ld -v

It should be ld64-274 for Xcode 8.

If it’s not, you need to upgrade the system ld to understand the tbd files. In case of multiple Xcode installed on your system, you can follow the below instructions to resolve the issue:

1. Go to the Xcode Preferences.

2. Click on the Locations tab

3. Change the Command Line Tools option to Xcode 8.0

Now check your system ld version, it should change to ld64-274.

Also copy paste this updated system ld to AIR SDK location /AIRSDK/lib/aot/bin/ld64/ and rename it to ld64.

Now restart your Flash Builder and try to build your app, it should work now.

Thanks,

Abhishek

JarSyr
JarSyrAuthor
Known Participant
September 27, 2016

Thanks! Works perfectly.