We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
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
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! Works perfectly.
I'm having the same problem but compiling on Windows. Do you have any idea how I can resolve this issue ?
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
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.