Quantcast
Viewing latest article 2
Browse Latest Browse All 3

AIR iOS app packaging with Flash Tooling and AIR 3.3

If you are using iOS Native Extensions with AIR 3.3, you may find that your application does not get packaged when using Flash Builder/Flash Pro. This is because, when using native extensions, linker warnings are not suppressed, and Flash Builder/Flash Pro are not able to handle such large number of warnings, specifically on Windows. This issue will be fixed in the upcoming release of Flash Builder and Flash Pro.

In order to overcome this issue, you can include the platform descriptor file (platform.xml) in your ANE, which contains the following linker option:

<option>-w</option>

A sample platform descriptor file will look like this:

<platform xmlns="http://ns.adobe.com/air/extension/3.1">
 <sdkVersion>5.0</sdkVersion> 
 <linkerOptions> 
 <option>-w</option> 
 </linkerOptions> 
</platform>

Then, at the time of packaging the ANE, include the ADT switch –platformoptions, providing the path to the platform descriptor file. For example,

adt -package 
-target ane myextension.ane extension.xml 
-swc mySwc.swc 
-platform iPhone-ARM library.swf libmylib.a 
-platformoptions platform.xml

However, if you do not have the ANE source files, you can always package the IPA using the ADT command line. More help on using the ADT command line can be found here. For instance,

adt -package 
-target ipa-app-store 
-storetype pkcs12  
-keystore ../AppleDistribution.p12  
-provisioning-profile AppleDistribution.mobileprofile  
myApp.ipa myApp-app.xml myApp.swf icons Default.png

Viewing latest article 2
Browse Latest Browse All 3

Trending Articles



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