Skip to main content
Participant
October 2, 2012
Answered

Cannot package when including own ANE

  • October 2, 2012
  • 2 replies
  • 809 views

I'm an iOS developer and have been tasked with creating an ANE for a customer. I followed the online tutorial and all appears to be well, I've created an ANE with a default and iOS implementation.

When trying to include the ANE in the actual mobile project and try to package it either via the command line or flash builder 4.6 itself on the mac I get the following issue:

Patricks-MacBook-Pro:bin-debug patrick$ /AdobeAIRSDK/bin/adt -package -target ipa-ad-hoc  -storetype pkcs12 -keystore mycert.p12  -provisioning-profile Wann.mobileprovision myApp.ipa workWithPackage-app.xml workWithPackage.swf -extdir ./ext
password: 
unexpected failure: null
java.lang.NullPointerException
     at java.util.zip.ZipFile.getInputStream(ZipFile.java:192)
     at com.adobe.air.ipa.IPAPackager.processExtensions(IPAPackager.java:270)
     at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)
     at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)
     at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
     at com.adobe.air.ADT.run(ADT.java:419)
     at com.adobe.air.ADT.main(ADT.java:469)

Anyone know what the issue is and how to fix it?

I've uploaded the ANE here:

http://subzero.eu/wp-content/uploads/2012/10/eu.subzero.SZJpegEncoder.ane_.zip

This topic has been closed for replies.
Correct answer Damanjit Singh

This is a known issue in AIR3.4.

Here are two solutions for you -

1. Use the latest AIR3.5 labs build (http://labs.adobe.com/downloads/air3-5.html)

2. Or, If you want to make this work with your current setup, as a workaround, please also use add a finalizer function for your ANE and declare it in your extension.xml. The finalizer may not do anything, but just return.

2 replies

Damanjit SinghCorrect answer
Adobe Employee
October 2, 2012

This is a known issue in AIR3.4.

Here are two solutions for you -

1. Use the latest AIR3.5 labs build (http://labs.adobe.com/downloads/air3-5.html)

2. Or, If you want to make this work with your current setup, as a workaround, please also use add a finalizer function for your ANE and declare it in your extension.xml. The finalizer may not do anything, but just return.

PatwwwAuthor
Participant
October 2, 2012

Thanks, that worked.

May I suggest that until AIR 3.5 is released you update the official tutorial page http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt2.html which says:

"Note: On iOS the finalizer is not required and it won't ever get called, even if it is present."

This will probably cause grief for other people new to ANE development. Altering the text to read "is required but won't ever get called" would help.