IOS app starts with black screen when compiled via ADT (Flex 4.6, AIR3.7)

I was using Flex 4.6 with AIR 3.1 in Flash Builder 4.6 on Windows 7. I used two build methods: 1) "Export Release Build" in Flash Builder during development and 2) the ADT toolchain on my build server.
For the ADT method I would create AIR intermediate files using:
"C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\FlashBuilderC.exe" --launcher.suppressErrors -noSplash -application org.eclipse.ant.core.antRunner -data [PATH_TO_SOURCE] -file [PATH_TO_BUILD_XML] [PROJECT_NAME]
Where my build.xml looks like:
<?xml version="1.0"?>
<project default="main">
    <target name="main">
        <fb.exportReleaseBuild project="[PROJECT_NAME]" basefilename="[BASE_FILE_NAME]" verbose="true" destdir="bin-release" />
    </target>
</project>
From these intermediate AIR files I would create my APK and IPA files using ADT like so (shown for iOS):
echo [CERTIFICATE_PASSWORD]|"C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\bin\adt" -package -target ipa-test -provisioning-profile [PATH_TO_MOBILE_PROVISIONING_FILE] -storetype PKCS12 -keystore [PATH_TO_DEV_CERTIFICATE] [OUTPUT_PATH] [PATH_TO_IOS_AIRI]
This procedure produced working iOS and Android apps as well.
I decided to upgrade AIR to version 3.7. I used the overlay proceedure described here (http://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html). I also updated the namespace in my project to reflect the new AIR version. Using "Export Release Build" in Flash Builder produces working copies of both the iOS and Android apps. Furthermore, the secondary method (used on my build server), produces both APK and IPA files without error. The APK works just fine but the IPA does not. When running the app on an Apple device, it starts up with a black screen and stays this way.
To summarize:
Flex 4.6, AIR 3.1: "Export Release Build" and ADT tool chain produce working APK and IPA files.
Flex 4.6, AIR 3.7 using overlay procedure: "Export Release Build" produces working APK and IPA files, ADT tool chain produces working APK file but IPA file loads black screen on Apple devices.
More notes:
I had made a back up of the "4.6.0" directory that holds the Flex and AIR SDK files. If I replace the overlayed Flex 4.6.0 SDK directory with the original (which contains AIR 3.1) and revert the namespace back to 3.1 in my project, everything goes back to normal and I get working apps via both methods described above.
Edit: I also should note that I've tried many other combinations of Flex and AIR (Flex 4.9.1 from Apache and AIR 3.5/3.6), which all produce the same issue. It seems that the overlay procedure breaks something for ADT with iOS specifically...
Edit 2: I also noticed that the IPA files output by methods 1 and 2 are slightly different. Opening these with 7-Zip I see that most of the files are the same, but some differ slightly in size (this was due to 'ipa-test' vs 'ipa-ad-hoc'). The odd thing is that in the IPA file that does not work (produced via the ADT method), the SWF file is named "swf3465180827438224920.tmp" while the SWF in the IPA that was created using "Export Release Build is named "[PROJECT_NAME].swf". It almost appears as though ADT fails to rename the temporary SWF file. I also realized that the "Export Release Build" method likely used '-target ipa-ad-hoc', so I tried this in the ADT method with the same result.
Any thoughts?

Hello Nimit,
Thank you for your response. I have tried AIR 3.8 Beta and this did not correct the problem. I downloaded the AIR 3.7 SDK from http://airdownload.adobe.com/air/win/download/latest/AdobeAIRSDK.zip . I have also tried with the new compiler as well, with the same result.
To keep things simple, I've created a very lightweight example with which I see the issue. I've also been able to remove the Flash Builder step and reproduce the problem with mxmlc and adt only. Since the files are simple, I will just post them here.
TestApp-app.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/3.7">
    <id>com.company.testapp</id>
    <filename>TestApp</filename>
    <versionNumber>1.0.0</versionNumber>
    <initialWindow>
        <content>TestApp.swf</content>
        <autoOrients>false</autoOrients>
        <fullScreen>true</fullScreen>
        <visible>true</visible>
        <softKeyboardBehavior>none</softKeyboardBehavior>
    </initialWindow>
    <android>
        <colorDepth>16bit</colorDepth>
        <manifestAdditions><![CDATA[
            <manifest android:installLocation="auto">
                <uses-permission android:name="android.permission.INTERNET"/>
            </manifest>
        ]]></manifestAdditions>
    </android>
    <iPhone>
        <InfoAdditions><![CDATA[
            <key>UIDeviceFamily</key>
            <array>
                <string>1</string>
                <string>2</string>
            </array>
        ]]></InfoAdditions>
        <requestedDisplayResolution>high</requestedDisplayResolution>
    </iPhone>
</application>
TestApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="TestView" applicationDPI="160">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
</s:ViewNavigatorApplication>
TestView.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="Test App" >
    <s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center" >
        <s:Label text="Hello World!" />
    </s:VGroup>
</s:View>
Create the above files in a single directory. Run the following to get a working IPA (method 1):
> mxmlc +configname=airmobile TestApp.mxml
> adt -package -target ipa-test -provisioning-profile [PROVISIONING_FILE] -storetype pkcs12 -keystore [CERTIFICATE] TestApp.ipa TestApp-app.xml TestApp.swf
To reproduce the problem, run the following (method 2):
> mxmlc +configname=airmobile TestApp.mxml
> adt -prepare TestApp.airi TestApp-app.xml TestApp.swf
> adt -package -target ipa-test -provisioning-profile [PROVISIONING_FILE] -storetype pkcs12 -keystore [CERTIFICATE] TestApp.ipa TestApp.airi
If you unpack the working IPA (from method 1) you will see the file "TestApp.ipa\Payload\TestApp.app\TestApp.swf". However, if you likewise inspect the IPA created via the AIR intermediate method (method 2), you will see the file "TestApp.ipa\Payload\TestApp.app\swf1970057761096800694.tmp" and there will be no "TestApp.swf". In both IPA files, if we inspect "TestApp.ipa\Payload\TestApp.app\Info.plist", we see the snippet:
        <key>CTInitialWindowTitle</key>
        <string>TestApp</string>
        <key>CTInitialWindowContent</key>
        <string>TestApp.swf</string>
        <key>CTMaxSWFMajorVersion</key>
        <string>20</string>
        <key>CFBundleSupportedPlatforms</key>
So I suspect "TestApp.ipa\Payload\TestApp.app\swf1970057761096800694.tmp" is incorrectly named, cannot be found at runtime and thus displays a black screen.
This problem is observed when using AIR 3.7. It is not observed when using AIR 3.1.

Similar Messages

  • Adobe AIR apps start with black screen on iOS 8

    AIR apps that worked fine on iOS 7 now just show a black screen and are unresponsive after updating to iOS 8.
    Is this a known issue? Has anyone found a solution yet?

    Found a resolution- the apps were published with the AIR 3.4 SDK. Republished with the newest AIR 15 SDK and they work properly in iOS 8.

  • Post update to iOS 8, i get black screen when I reject or miss a call...how to get rid of this...?

    post update to iOS 8, i get black screen when I reject or miss a call...how to get rid of this...?

    Do a sync and backup first.

  • Any known reason why bootcamp would start with black screen ?

    I just got bootcamp installed on a brand new mac pro with two Apple displays.
    I was able to start up my machine successfully with bootcamp (windows XP) and with mac OS.
    I am able to run the bootcamp partition from VMware. However, recently, I have not beel able to boot into windows.
    All I get is a black screen once the windows logo disappears.
    Any idea why bootcamp suddenly refuses to boot with windows but has no problem doing so with CMware Fusion ?

    You probably want to look through VMware Fusion about what is happening.
    http://communities.vmware.com/community/vmtn/desktop/fusion
    BootCamp is just a way to help format drive partitions. Beyond that, it adds HAL and Apple Services.
    With Mac Pro, the ideal is to use Disk Utility and 2nd drive, partitioned as Master Boot Record.
    Fusion and a BootCamp partition do make it more complicated. Fusion over writes graphic drivers - or did.
    Windows Recovery Environment and Safe Mode would be first step.

  • Qosmio F50-125 starts with black screen after an BIOS update

    Hi
    after instalation if new bios (v 2.0), computer sometimes starts with the black screen .
    Even the first page that show press f2 to enter the bios is not shown.
    Do you have somebody old version of the bios?
    So I could try if it is the fault of it.

    Hi
    I think the old BIOS will not help you because the notebook would known that you are trying to update the BIOS to the older version and it would break up the procedure.
    Furthermore the older BIOS is no available on the Toshiba European driver page.
    I think just only a Toshiba ASP has got an older BIOS version.
    Anyway, you said this happens sometimes.
    This would mean that this issue doesnt persist always
    Hmm. in such case I recommend settings the BIOS to the default settings and to update the display driver.
    Check it out!

  • Satellite m505 problems with booting up programs after started with black screen

    I went to start my laptop and after login to my profile, i was getting only a black screen. after restarting many times in both safe mode and regular, miracles i got it to long in correctly...
    now the problem is my main program and a few others would not open up, again restarted computer several times and nothing is helping... so i uninstalled the program and attempted to re-install... new problem now it wont reinstall every time i try it opens windows installer and just sits there doing nothing....
    help i just want to get my work done!!!!!

    Try using clean boot.
    How can I perform a clean startup of Windows 7 without my startup items to troubleshoot a problem?
    - Peter

  • My Macbook Pro has a black screen when running in Bootcamp Windows 7. Since I updated the mac side my windows side now starts up with completely black screen - no prompt, nothing, Cap keys still light up as does mouse and DVD drive seems to run.

    My Macbook Pro has a black screen when running in Bootcamp Windows 7. Since I updated the mac side my windows side now starts up with completely black screen - no prompt, nothing, Cap keys still light up as does mouse and DVD drive seems to run.
    Will not show up in safe mode, will not show when started from Windows 7 DVD.
    I suspect the Mac update wiped out my PC video drivers but can not think of a way to re-install?
    Can see the PC volume from Mac side with files.
    I've looked at all the online solutions so far and have tried most of them without success. Please help!
    Specs:
    2009 Macbook Pro, 3.06 GHz Intel 2 core, Max 10.6.8.
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro5,2
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          3.06 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          6 MB
      Memory:          4 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MBP52.008E.B05
      SMC Version (system):          1.42f4
      Serial Number (system):          7302300GANE
      Hardware UUID:          B2D4B4B4-CD92-5C7A-BDC2-527D30DD8DF3
      Sudden Motion Sensor:
      State:          Enabled

    EDIT: RESOLVED
    For anyone else who finds their way here like I did, this link did it for me: https://forums.geforce.com/default/topic/527599/windows-8-issues-solved-please-r ead-if-you-39-re-having-black-screen-and-or-flickering-/
    Specifically, the posts by Dunsany and valkyr did the trick.  I booted in safe mode, uninstalled and deleted the Nvidia driver, disabled automatic driver installation, and restarted normally.  I then manually downloaded and installed the previous Nvidia driver for my graphics card (which at the time of this writing was 335.23, rather than the latest which was 337.88), and everything is now bueno!
    Two hiccoughs along the way: First, when I tried to uninstall the Nvidia driver the first time, when I restarted I got the login screen (which was a good sign), but it quickly went black again.  I powered down, restarted in safe mode again, and repeated the uninstallation process, and it worked the second time.  Second, when I started the manual install of the 335.23 driver, the computer played a sound similar to the one for disconnecting a USB device, and the screen went black.  I'd seen a lot about trying to increase the brightness (though it hadn't worked up to this point; but if you haven't tried it yet, might as well); I tried it, and it worked! So far I'm back up and running. [/fingers crossed]
    Hope this helps someone else!

  • My iphone 4s goes to a black screen when in use of any apps. after the update to ios6 any ideas for a fix?

    Since i updated to ios 6 my iphone goes to a black screen when it is in use. I could be texting and 5-10 sec later it goes to a black screen and than to the home page. Its also will be when playing games and so on. Can you please help me with this? I have tried resetting my phone, press the home button 2 time and canceling any running apps and even press home and powering button and still does the same thing. I need help!!!! Any suggestions?????

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • 970 GAMING black screen when boot on cold start, have to clear CMOS everytime

    I have 970 GAMING w/ FX8320, it shows black screen when boot on cold start, have to clear CMOS everytime to enter default.
    I have updated it to the up to date M11 bios. Once it boot up, it functions OK no matter whether you reboot or reset it. But after turned off a few hours (cooled down), it shows on black screen again on boot, all LED lights up OK, but I can hear the fan like keep rebooting, any idea?
    PSU seasonic 430W, GPU HD7750.

    In what DIMM slots did you insert your memory?  I just got and at this moment building a new computer with a 970. 
    A horrible experience I had with my last build reminded me of it.  My board was am MSI A88XM-E45.  DIMM1 is blue, DIMM2 is black, DIMM3 is blue, & DIMM4 is black.  When using two sticks of RAM, it says to install one on DIMM1 & the other in DIMM3 (Makes sense... After all, it's color colored that way).
    Well it would not boot.  I reseated every component and for HOURS tried almost everything.  Finally I decided to place my two sticks of RAM in the first two DIMMS and viola!
    I think I will begin this build the same way.

  • HT1414 My Ipod Touch have a black screen when an app shut down and I can not shut down the Ipod. The screen is still black and I did the press two buttons solution and it doesn't work. What I have to do now?

    My Ipod Touch have a black screen when an app shut down and I can not shut down the Ipod. The screen is still black and I did the press two buttons solution and it doesn't work. What I have to do now?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • HT4061 I have an iphone  5s, does not boot, blinking white screen with black logo, when trying itunes restore from mac and pc, error code 4013 which is usb error, any ideas?

    I have an iphone  5s, does not boot, blinking white screen with black logo, when trying itunes restore from mac and pc, error code 4013 which is usb error, any ideas?  Does a totally dead battery have that effect?  I have had it plugged in to a computer overnight, but maybe does not charge when totally dead?
    Please help, thanks in advance all1

    Hi eggroll77,
    Welcome to Apple Support Communities.
    That alert codes does suggest there is a USB related issue. If you haven’t already, try the troubleshooting suggestions in the article linked below.
    iOS: Restore errors 4005, 4013, and 4014
    I hope this helps.
    -Jason

  • HT1937 I have installed an app : Birdfield guide in my iPhone 4. But the app is not working after installation. It shows black screen when opened

    I have installed an app : Birdfield guide in my iPhone 4. But the app is not working after installation. It shows black screen when opened. I need suggestions to make it work or the reasons for not working.

    Yes TeeKnows, try deleting it and download it again. After finished installation if still shows black screen delete it out off 'running apps' by double tapping the home button and swipe it off. If still shows black screen then try fully turning off your iPad (holding the sleep button) and turn back on again.
    I hope I helped
    thanks
    Lydia

  • Why do I get a black screen when I start my macbook pro?

    why do I get a black screen when I start my MacBook pro?

    Hello szimmerli2 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.

  • .mov from 4S is black screen when played with QT and QT 7/lion

    Q1. .mov from 4S is black screen when played with QT and QT 7 on lion/mac book pro.
    Q2   Also I want to burn it in DVD with common video format. Any recomment free burner software?
    Very very very urgent!! Please help.

    Hello there,
    I have a similar problem! Windows 7 shutdown unexpectedly and since that I can not reboot in windows anymore only with safe mode where everything is a mess.
    Also when it's trying to reboot in windows a blue window appears,says something about drivers  and it is counting something (79.78...till100)but  I m not able to read it cause it disappears immidiately and then black screen and then it turns to reboot in mac which works fine.
    I m sorry if I confused you with my english...
    If anyone knows please help!
    Thanks

  • I solve my problem of black screen when starting up my Mac pro, namely by the button lighting and then i saw the login screen. Hopefully it works for you too.

    I solve my problem of black screen when starting up my Mac pro, namely by using the lighting button and then i saw the login screen. Hopefully it works for you.

    It was the PRAM.

Maybe you are looking for