• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Compilation fails with Xcode 8

Participant ,
Sep 27, 2016 Sep 27, 2016

Copy link to clipboard

Copied

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?

TOPICS
Performance issues

Views

5.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Sep 27, 2016 Sep 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

...

Votes

Translate

Translate
Adobe Employee ,
Sep 27, 2016 Sep 27, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 27, 2016 Sep 27, 2016

Copy link to clipboard

Copied

Thanks! Works perfectly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 07, 2016 Oct 07, 2016

Copy link to clipboard

Copied

Hello,

I'm having the same problem but compiling on Windows. Do you have any idea how I can resolve this issue ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 23, 2018 Apr 23, 2018

Copy link to clipboard

Copied

LATEST

we got same problem

it is 2018 almost 2 years past but still this issue not solved for latest air sdk 29.122 for windows.

we need working ld64.exe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 28, 2016 Nov 28, 2016

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines