Skip to main content
Inspiring
December 14, 2012
Question

Failed to package iOS AIR app with Air 3.6 beta

  • December 14, 2012
  • 15 replies
  • 5178 views

Hi

I was hoping I could get help with those error messages

Configuration to package for an iOS device

Here is the adt command

c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\iOS_device.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug iOS_device.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default-568h@2x.png -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png

 

And error

Failed to package AIR application iOS_device.ipa:

         D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml: error 302: Root content HeadrApplication.swf is missing from package

Configuration for the emulator

Here is the adt command

c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug HeadrApplication.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default-568h@2x.png -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png

And error 

Failed to package AIR application HeadrApplication.ipa:

         unexpected failure: null

         java.lang.NullPointerException

         at com.adobe.air.ipa.IPAPackager.processExtensions(IPAPackager.java:314)

         at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)

         at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)

         at com.adobe.air.ADT.parseArgsAndGo(ADT.java:572)

         at com.adobe.air.ADT.run(ADT.java:419)

         at com.adobe.air.ADT.main(ADT.java:469)

This topic has been closed for replies.

15 replies

Pahup
Adobe Employee
Adobe Employee
December 15, 2012

Thanks for reporting the issue. Could you please try updating the namespace of your application descriptor to 3.6 and let us know how it goes.

There is a known issue with 3.6 beta, it shows up the similar error when packaged with less than 3.6 namespace.

Thanks

-Pahup

mu_aAuthor
Inspiring
December 15, 2012

Hi Pahup

Thanks for your prompt reply

I believe my application.xml was correct last night when I got this error

ie looked something like that at the top

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/3.6">

Having said that, an unexpected, different error this morning when I try to build

[AIR Debug Launcher]: invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/3.6

[AIR Debug Launcher]: Process finished with exit code 7

Melissa.

Pahup
Adobe Employee
Adobe Employee
December 15, 2012

Melissa,

My reply above was for your 2nd error (java.lang.NullPointerException).

Regarding your 1st error - try changing the order of swf and extdir, swf always follows the xml in adt command.

Regarding your 3rd error - Are you sure, you're using 3.6 ADL (Adobe debug launcher), it looks like ADL isn't able to recognize the 3.6 ns.  To check the ADL version, right click on adl.exe being used, click on "Details" tab, you'll see a version number there, it should be 3.6.

-Pahup