I have a project that I've been successfully compiling for iOS in Flash Professional 5.5, with uses AIR 2.6. I decided to try compiling in Flash Builder 4.6 using AIR 3.1. It runs fine on the desktop, no errors or warnings. When I try to do an Ad Hoc release build, it fails with java.lang.NullPointerException at java.util.TreeMap.getEntry(TreeMap.java:324), (The Export Release Build dialog does not let me select the text, otherwise I'd paste the stack here)starting at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82) and saying "Compilation failed while executing: ADT"
Any suggestions would be appreciated!
Regards,
John
Hi John,
Could you please try packaging it on command line using ADT (available @ C:\Program Files\Adobe\Adobe Flash Builder 4.x\sdks\4.x\bin)
# adt -package -target ipa-ad-hoc -provisioning-profile <path to mobileprovision> -storetype pkcs12 -keystore <path to p12> -storepass <password> hellworld.ipa hellworld-app.xml hellworld.swf
Is it specific to ipa-ad-hoc target only? Could you try it with other targets like ipa-app-store or ipa-test-interpreter
Please share the adt version by executing following command.
# adt -version
-Thanks
Pahup
I'm not John, but I have the exact same issue, same traceback. I'm compiling on the commandline with adt version 3.1.0.4880, but it also happens with sdk versions 3.2 and 3.3. If I compile the SWF using -debug, the problem doesn't occur - only with the release build. It also occurs with the ipa-app-store target, but not with ipa-test-interpreter (not too surprising, given the error traceback).
Oh, and here's the complete traceback:
Exception in thread "main" java.lang.NullPointerException
at java.util.TreeMap.getEntry(Unknown Source)
at java.util.TreeMap.get(Unknown Source)
at adobe.abc.Algorithms$SetMap.get(Algorithms.java:223)
at adobe.abc.Algorithms.addUses(Algorithms.java:166)
at adobe.abc.Algorithms.findUses(Algorithms.java:186)
at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4626)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:527)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:337)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
.java:510)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:80)
Compilation failed while executing : ADT
Thanks for your reply, please raise the bug @ https://bugbase.adobe.com/ request you to attach relevant sources/swf/xml, so that we could investigate the issue at our end.
-Pahup
North America
Europe, Middle East and Africa
Asia Pacific