Skip to main content
onselakin
Participant
Oct 25, 2018 7:26 PM UTC
Question

library not found for -lstdc++

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?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Legend
Oct 26, 2018 6:07 PM UTC

Yes. You should download Xcode 9.1

You can do this @ developer.apple.com

Translate
Legend
Oct 25, 2018 10:47 PM UTC

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.

Translate
onselakin
onselakinAuthor
Participant
Oct 26, 2018 6:15 AM UTC

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

Translate
Inspiring
Oct 27, 2018 5:07 AM UTC

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

Translate
Colin Holgate
Inspiring
Oct 25, 2018 9:58 PM UTC

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?

Translate