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

library not found for -lstdc++

New Here ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

It seems something has changed with the newer versions of Xcode. I have Xcode 10.0 on my machine and unable to package my swf to test on iOS simulator.

Here's the command I'm using:

adt -package \

     -target ipa-debug-interpreter-simulator \

     -connect \

     -storetype pkcs12 -keystore Certificate.p12 -storepass password \

     Main.ipa Main-app.xml Main.swf \

     -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk

and I get:

ld: library not found for -lstdc++

Compilation failed while executing : ld64

​Anyone else having this?

TOPICS
Development

Views

1.9K

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
LEGEND ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

I was given this work around for getting the simulator to work, but this was for Xcode 9.3. It's worth a trying though, see if these steps help (I'm quoting someone from Adobe):

"The workaround is to replace the Runtime LD located at the path /lib/aot/bin/ld64/ld64 with the one which comes with Xcode 9.3. You can find it at location: /Xcode.app/Contents/Developer/usr/bin/ld. Please ensure that ld renamed to ld64 after pasting."

I think AIR was at version 30 at the time, so maybe they fixed things in AIR 31?

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
Engaged ,
Oct 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

There is already a thread for this

AIR 31 and -platformsdk switch of iOS12 Beta - unable to compile

Essentially you can't use Xcode10 platformsdk until AIR is compiled against iOS12 SDK.

Adobe are working on it.

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 25, 2018 Oct 25, 2018

Copy link to clipboard

Copied

So is it possible for it to work if I download an earlier version of iOS SDK?

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
Enthusiast ,
Oct 26, 2018 Oct 26, 2018

Copy link to clipboard

Copied

LATEST

yes, you need to merge different SDK to support different versions

see for example
MacOSXSetup · Corsaair/redtamarin Wiki · GitHub

the part where it talk about

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

where you install MacOSX10.11.sdk from Xcode 7.1.1
but where you "merge" MacOSX10.9.sdk extracted from Xcode_6.4.dmg

same principle

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
Engaged ,
Oct 26, 2018 Oct 26, 2018

Copy link to clipboard

Copied

Yes. You should download Xcode 9.1

You can do this @ developer.apple.com

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