Adobe AIR 3.4 for iOS - Compiler stalls/hangs & never creates ipa

     So, I've run into a bit of a roadblock. I'm currently trying to package an iOS app that contains an ANE (iAd), SWC (tweener), and external AS file using Flash CS6. I've successfully packaged this app for Android as well as Blackberry, but iOS seems to be giving me a run for my money.
     I've linked to the necessary external files as I did with Android. Same exact process that I've done at least 20 times with existing apps (with the exception of the SWC and External AS file). When I preview the swf, the swf compiles and plays perfectly fine. As it should. When I go to publish any type of ipa file, it initializes, creates the temp files/folders and then hangs. It never completely compiles the ipa file. I let it attempt to compile through several attempts, the longest being 30mins, before cancelling. I was wondering if anybody else is coming across this issue. Google searches didnt help much.
I've tried this with AIR 3.2, 3.3 and 3.4, none worked.
The compiled file size on Android is 1.6mb, so the external files aren't ridiculously huge.
I tried moving all external files into the root of the flash file, didnt help.
I attempted a command line package - same thing. Started compiling and then seemed to freeze
     My last successful ipa compiled was 8/22. I'm not sure what the heck happened between now and then, or what the issue could be. No errors or warnings appear at any point throughout every test/attempt I've done. Running out of options. I appreciate any guidance/help that could be provided.

Ok, after much testing... I've pinpointed a potential problem. My external AS file is a dictonary word list of about 172k words written into an array. I had no problem compiling for Android or Blackberry, but the iOS packager doesn't seem to like it.
I originally had it loading from an external text file and creating the array at runtime, but I didn't like the way it functioned/processed. Much faster with a pre-made & sorted external AS file --
Once I removed the as file and created a very small array in place of it, Flash compiled the ipa fine.
With that said... is there any type of work around that doesnt involve loading and processing an external text file at runtime?
Or any other ideas I can attempt to make this thing work?

Similar Messages

  • Java.lang.NullPointerException is thrown when packaging Adobe AIR 3 application for iOS

    I just update my AIR project for iOS from Adobe AIR 2.6 to Adobe AIR 3.1 (that comes with Flash Builder 4.6), than I always got an exception when packaging my application:
    Error occurred while packaging the application:
        Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.Nsset.match(Nsset.java:263)
            at adobe.abc.Name.match(Name.java:555)
            at adobe.abc.Symtab.getEntry(Symtab.java:37)
            at adobe.abc.Symtab.get(Symtab.java:55)
            at adobe.abc.Type.setNeedsArgumentsUpInheritanceHierarchy(Type.java:343)
            at adobe.abc.Type.setNeedsArgumentsUptoRoot(Type.java:269)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:558)
            at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:448)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:327)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
        Compilation failed while executing : ADT
    What is the cause of this error, so I can avoid it in my project before AIR team fix this?
    Thank you.

    Hi Everyone,
    I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go! 
    Getting the same error.
    Exception in thread "main" java.lang.NullPointerException
            at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
            at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
            at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
            at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
            at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
            at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
            at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
    .java:472)
            at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    regards,
    Keith

  • StageScaleMode.EXACT_FIT not supported in air 2.7 for ios?

    stage.scaleMode = StageScaleMode.EXACT_FIT;
    Does not work correctly air 2.7 for ios. It is all messed up.
    This is what my program looks like in air 2.6 for ios:
    http://literacysoft.com/uploads/2.6.PNG
    This is what it looks like when compiled with air 2.7:
    http://literacysoft.com/uploads/2.7.PNG
    Is there anything I can do to fix this?
    -Scott

    I think you are hitting the GPU fullscreen bug in AIR 2.7(http://forums.adobe.com/message/3747867). It suspect it is not related to the scale mode that you are setting. To confirm, you could set the renderMode to cpu in your application xml. You should not be able to reproduce the bug.
    -Sanika

  • Adobe Air native extension for admob

    Dear Adobe Team,
    We have recently purchased Adobe Air native extension for admob for android & ios
    but every time we upload our app to an ipad or iphone, the app crashes.
    We have carefully followed your instructions, and we're sure we've not made a mistake writing the action script 3 code.
    We need your help in solving this problem urgently, as we are now running behind schedule in uploading our app.
    Thanks very much,
    Amir Steklov and Dorit Leshnick

    Before I was also searched a lot to find good  add network and also Admob.
    Finally we done successfull integration using..  working fine in all IOS devices. not yet released to Apple app store
    http://code.google.com/p/flash-air-admob-ane-for-ios/source/browse/trunk/admobaneiphone/sr c/admobtest.as?r=2
    You can check our add setups using Air ANE's for our android game ExpressTrain.
    https://play.google.com/store/apps/details?id=air.timuzsolutions.expresstrain&feature=sear ch_result#?t=W251bGwsMSwyLDEsImFpci50aW11enNvbHV0aW9ucy5leHByZXNzdHJhaW4iXQ..
    you no need to buyAdobe Air ANE's everything is free but all u need to do is googling,
    hope this will help.
    Bala
    Message was edited by: vamsibalu

  • Can adobe air send SMS on ios and android without opening the native sms app?

    Is it possible to programatically create and send an SMS text message on android and ios using adobe AIR? I have had success using navigatetourl to create the sms message, but was curious to know if its something that AIR is capable of or if os-specific native development is required to accomplish this.
    I'm using flash builder 4.6 and AIR 15.

    Im not the best/smartest programmer in the world and I was able to eventually get it down. There are a decent number of tutorials that you can follow to get started on them. I originally followed Lee Brimelow's video tutorials on gotoandlearn.com but the interfaces for Eclipse have changed quite a bit since then and those videos were also done when Native Extensions were only part of a beta version of AIR, but you might still be able to take something away from them. Since I first started getting into Native Extensions, I have built several ANEs for Android including being able to detect phone calls, retrieve metadata for media files without having to have loaded/played them first, and more. The Android Java documentation portal and Stack Overflow will start to become your two best friends.

  • Flash Pro CS6にて「AIR 3.4 for iOS」で.ランタイム共有ライブラリの警告が出てしまう.

    「Flash CS6」を、Windows 7(32bit)で利用しています。
    現在、iOS用のAIRアプリを作成を試みておりますが、パブリッシュの際に下記の警告が出力ウィンドウに表示されます。
    警告 : ランタイム共有ライブラリ (RSL) としてリンクされているライブラリがありません。原因となるパブリッシュ設定 : AIR 3.4 for iOS
    設定は「AIR for iOS(3.4)」で、3.2としても同様の警告が現れます。
    ipaファイルは正常?に作成されますので、それを登録済みのiPhoneやiPadにインストールし、起動することができます。
    しかし、プログラムに記述したNativeExtension(NetworkInfoなど)の機能が動きません。。。
    CS6上の「制御」→「ムービープレビュー」→「AIR Debug Launcher(モバイル)を使用」で動かすと、上記のNativeExtensionの機能が動いています。
    上記のライブラリがリンクされていないことが原因かと思いますが、Flash CS6上でどのような設定を行えば、警告が出なくなるのでしょうか?
    一応、実機でのインストールや起動も出来ますので、プロビジョニングファイルやp12ファイルは正しく設定できていると思いますが。
    開発環境は以下の通りです。
    ・Flash Professional CS6
    ・Windows 7(32bit)
    ・AIR SDK:3.4 for iOS
    ネット上を探してみましたが、手がかりがなく、困っております。
    どなたかご存知の方がいらっしゃいましたら、よろしくお願いします。

    Native Extensionsに関して参考になりそうなページがあったのでお知らせします。
    こちらの説明をみて設定を確認してみてください。
    ネイティブ拡張(ANE)の使い方 for Flash Professional CS6
    http://www.adobe.com/jp/devnet/flash/articles/flashpro_ios_ane.html
    Using native extensions in Adobe Flash Professional CS6
    http://www.adobe.com/devnet/air/articles/using-ane-in-flash.html

  • Developing and using Adobe AIR native extensions for Android devices

    I was using this tutorial:
    "Developing and using Adobe AIR native extensions for Android devices"
    http://www.adobe.com/devnet/air/articles/ane-android-devices.html
    When packing the Flex mobile ANESampleTest to deploy on an Android device, the below error happens
    Error occurred while packaging the application:
    aapt tool failed:invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/drawable-xxhdpi
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw600dp
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw720dp-lan
    Does anyone know what the issue might be?

    Did you find a workaround for the Error? I'm getting the same and I can't seem to find any solution.

  • SetTimout doesn't work properly in AIR 2.7 for IOS

    Hello,
    I notice the setTimout() method does not work properly in AIR 2.7 for IOS.
    Closure function isn't execute with the proper delay...
    See bellow (Timeout.execute is a workaround -> http://www.displayobject.fr/2011/06/16/a-timeout-class-to-replace-settimeout-in-air-2-7-fo r-ios/)
    Jonas

    Thanks for bringing this issue to light.
    We are looking into it.

  • Integrate Adobe Air in app for Android

    Hello!Please, answer to one my question.
    Can I integrate Adobe Air in my app for Android? I want the user to not download Adobe Air from Google Play.
    Thanks.

    I've never used anything other than Flash Builder for mobile... So, yes, cf my original answer!
    When you select Export Release Build, it is on the first page of options. (I think ... This is from memory.) In any case, it is very visible. Just look at all the Android options when you package for release.
    G

  • Hi, I'm new to using mac laptop, i just got one 1 month a go, i was downloading adobe flash player and it asked me for a password for the computer and i never created one, how do i over pass this situation?

    Hi, I'm new to using mac laptop, i just got one 1 month a go, i was downloading adobe flash player and it asked me for a password for the computer and i never created one, how do i over pass this situation?

    It is asking for your computer administrator account password to make system changes.  You "should" have an administrator account password.
    HTH

  • Getting some issues using adobe air 2.6 for android

    Hii, i am new to adobe air for android using flash cs5 development.  According to standard procedure  i have installed these softwares on my pc.
    1.Adobe flash cs5, 2.AIR sdk , 3.Adobe air for android and 4.android sdk also.
    is there any software or plugin is required  for making android application?
    so now to start develop an application i have opened flash cs5, in that we select a "new"  option, then we will select "AIR for Android" option, but instead of that option i'm getting option "Adobe AIR 2".
    Is there anybody to tell me how can i recover this problem? Or plz provide me any link that will help me to tell what is the actual procedure to develop  android application using CS5.?
    Any help will be useful.
    Thank you,
    Pravin Gate.

    Hi Pravin,
    Adobe had released extentions for flash CS5. Once the extention is installed, this is where you get the additional options in flash ide. The last extention for air on android was for air 2.5 and looks to have been recently removed from their site with the public launch of 2.6
    So using 2.6 there is no flash IDE support yet, but will be soon. The last extention i think was flashpro_extensionforair_p2_112210.zxp
    Personally, at this time i still have the 2.5 extention installed and launch directly from flash, this is what i am missing out on:
    2.6 new features
    At this time im not going to release anything compiled with the 2.5 extention, but my phone has 2.6 runtime so i belive the performance would be the same.
    You deffinitly should go right to 2.6 but if you wanted to play with the now outdated extention for 2.5 i can email it to you.

  • Adobe AIR Needed on Android / iOS to Run Adobe Flex Apps

    Hi all,
    I want to confirm if the user has to install Adobe AIR before launching Adobe Flex apps on Android and iOS Devices. Is there any way that we could embedd Adobe AIR setup in the app file so that the user dont have to hastle in installing Adobe AIR.
    Taimur

    It gives you only three options:
    Signed packages for each target platform.
    Signed AIR package for installation on desktop.
    Intermediate AIRI package that must be signed later.
    For mobile apps, we need to select the first option to get the .apk and .ipa file as the second option would generate .air file. None of the options offer to package AIR runtime. Only the first option gives you the option on NEXT window to include the download link of AIR Runtime.
    If i am wrong, kindly point me to that specific checkbox.
    OR do i have to put Runtime.apk in the assets folder of my source code so that it gets packaged?

  • Will Adobe AIR apps work on iOS (Javascript/HTML)?

    Hello,
    I haven't been able to find any definitive answer on whether Adobe AIR apps using Javascript and HTML can work on iOS.
    Anyone know for sure?
    And if so, what happens with the APIs available through these swfs that we currently include:
    networkInfoWrapper.swf
    servicemonitor.swf
    applicationupdater_ui.swf
    Many thanks
    Stephen

    The answer is no. Apps developed for AIR using HTML and JavaScript are not supported on iOS or other mobile platforms. The mobile platforms do include a StageWebView component that can be used to load and display HTML and JavaScript. However, it is entirely different than the HTMLLoader control used on the desktop platforms (for HTML-based AIR apps). You cannot, for example, call any AIR/Flash APIs from JavaScript running in a StageWebView. In general, very little communication is possible between your ActionScript application code and the JavaScript code running in the StageWebView object.

  • Loading multiple swfs using air 3.6 for ios

    Adobe, can you please provide us with the code to load multiple swf files for ios. Please provide examples. The code below loads multiple swfs, but the swfs stall, so this does not seem to be a solution.
    Code description: A flash file made up of 4 frames with forward and back buttons that navigate from frame to frame. The code loads three different swf files in frames 2, 3 and 4.
    Frame 1:
    var myLoader:Loader;
    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
    else {myLoader.unload();}
    Frame 2:
    myLoader.unload();
    myLoader.load(new URLRequest("file1.swf"),loaderContext);
    Frame 3:
    myLoader.unload();
    myLoader.load(new URLRequest("file2.swf"),loaderContext);
    Frame 4:
    myLoader.unload();
    myLoader.load(new URLRequest("file3.swf"),loaderContext);

    I've just tried loading, unloading and then loading again same SWF with 2 library objects linked for AS3 export. It worked both on simulator and on device in debug mode. When I look inside swf it does contain AS3 code.
    So is my swf a pure asset SWF? Or Intellij Idea 12 that I'm using does stripping automatically?
    And then I've read your comment at http://forums.adobe.com/message/5217325#5217325 and run 'swfdump' utility on my .swf file. Looks like there's no ABC2 code, that's why app was able to load, unload and load again the same swf.
    public dynamic class net.games.bg extends flash.display.MovieClip
      native public function bg():*;
      native public var one:flash.display.MovieClip;
      native public var three:flash.display.MovieClip;
      native public var two:flash.display.MovieClip;
    public dynamic class net.games.z1 extends flash.display.MovieClip
      native public function z1():*;
    I can access objects as instances through root  or as objects through getDefinition.
    private var aLoader : Loader;
    private function init():void
                load1();
            private function load1():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete1, false, 0, true);
            private function handleSWFLoadComplete1(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace(' load 1 ' + myLibraryObject);
                aLoader.unload();
                load2();
                //addChild(levelObjectsMC);
            private function load2():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete2, false, 0, true);
            private function handleSWFLoadComplete2(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace('load 2 x ' + myLibraryObject.x);
                aLoader.unload();

  • How to get Flash to use AIR 2.7 for iOS?

    How do I force Flash Pro to use AIR 2.7 for an iOS-project?
    When choosing Publish settings you can only choose AIR for iOS without any version numbers. But when you choose only AIR there is a version number. According to an informative video http://tv.adobe.com/watch/flash-platform-in-action/adobe-air-27-faster-app-performance-on- ios/ it seems like 2.7 could be the solution to my problems. Obviously the 2.7 version is for iOS too and not for "AIR only".
    I have installed 2.7 but in the xml-file that follows with the ipa-file that has been created it says AIR 2.6. But when I try to download 2.7 (again) I get the information that I already have AIR installed... I guess "he/she" means 2.7 because I can see it in a dll-file (according to instructions on a web page on www.adobe.com (can't find it right now)).
    So why am I not getting the ipa-file created with AIR 2.7? What can I do to make it happen?
    Best regards,
    Åsa

    Thanks a lot, this is helpful.
    My interpretation of this document is that the version of AIR used comes from what version of Flash Pro you are using. Correct? And you are not supposed to upgrade AIR without upgrading Flash Pro according to Adobe?
    Best regards,
    Åsa

Maybe you are looking for