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?
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?
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.
Copy link to clipboard
Copied
So is it possible for it to work if I download an earlier version of iOS SDK?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Yes. You should download Xcode 9.1
You can do this @ developer.apple.com