Quantcast
Channel: Adobe Community : Popular Discussions - AIR Development
Viewing all articles
Browse latest Browse all 24121

Hello World app for iPad doesn't run when using Standard packaging.

$
0
0

I'm having some issues getting a basic R&D app to run on an iPad.  When I use Fast packaging, the app will run fine (possibly slowly), but when I use Standard packaging, I just get a blank white screen that doesn't do anything.

 

I have reduced it to two different Hello World apps that I can reproduce this with:

 

1:

 

package

{

    import flash.display.Sprite;

    import flash.events.Event;

    import flash.text.TextField;

  

    public final class HelloWorld1 extends Sprite

    {

        private var m_lbl:TextField = new TextField();

      

        public function HelloWorld1()

        {

            stage ? init() : addEventListener(Event.ADDED_TO_STAGE, init);

            function init(pEvent:Event = null):void {

                removeEventListener(Event.ADDED_TO_STAGE, init);

                addChild(m_lbl);

                m_lbl.text = "Hello, World!";

            }

        }

    }

}

 

2:

 

package

{

    import flash.display.Sprite;

    import flash.events.Event;

  

    public final class HelloWorld2 extends Sprite

    {

        public function HelloWorld2()

        {

            stage ? init() : addEventListener(Event.ADDED_TO_STAGE, init);

            function init(pEvent:Event = null):void {

                removeEventListener(Event.ADDED_TO_STAGE, init);

              

                graphics.beginFill(0x000000);

                graphics.drawRect(0, 0, 320, 240);

                graphics.endFill();

            }

        }

    }

}

 

When I run these apps on the company's iPad using Fast packaging, I get either a simple label or a black rectangle to show up on the screen, depending on which one.  But when I run either using Standard packaging - which is supposed to not have any differences at all, aside from speed - the screen just comes up in plain white, and nothing happens.

 

What would there be to check?  Thanks!

 

UPDATE:

 

This is in the device's crash logs for the app:

 

Exception Type:  EXC_RESOURCE

Exception Subtype: WAKEUPS

Exception Message: (Limit 150/sec) Observed 468/sec over 300 secs

 

Apparently the Standard packaging compilation is inserting an exceptionally high number of thread sleep/wakeup calls, causing the thread to crash in iOS.


Viewing all articles
Browse latest Browse all 24121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>