Skip to main content
December 4, 2012
Answered

ANT build produces not working package with 3.5 AIR SDK

  • December 4, 2012
  • 2 replies
  • 990 views

I used AIR SDK 3.1 and have ANT script to compile and package iPad(AdHoc for testing) application. I tried to switch to 3.5 SDK today but when I install *.ipa and launch on iPad it hangs at the spalsh screen.

I tried to make release build using Flash Builder UI and it worked. So the question is has anything changed in terms of packaging/compilation options?

Just in case attached my current ANT script:

<target name="Compilation" depends="Initialization">

     <mxmlc file="${main_class}" output="${swf_file}" locale="${LOCALE}"  static-rsls="false" accessible="false" configname="airmobile"

                optimize="true" actionscript-file-encoding="UTF-8" keep-generated-actionscript="false" static-link-runtime-shared-libraries="true"

               debug="${debug_mode}"  failonerror="true" fork="true"  maxmemory="1024m">

          <source-path path-element="${class_path}"/>

          <load-config filename="${FLEX_HOME}/frameworks/airmobile-config.xml"/>

          <load-config filename="${config_file}"></load-config>

          <library-path dir="${lib_path}" includes="*.swc" append="true"/>

     </mxmlc>

</target>

<target name="Packaging" depends="Compilation">

      <java jar="${ADT}" fork="true" failonerror="true">

          <arg value="-package"/>

          <arg value="-target"/>

          <arg value="ipa-test"/>

          <arg value="-provisioning-profile"/>

          <arg value="${ios_provisioning}"/>

          <arg value="-storetype"/>

          <arg value="pkcs12"/>

          <arg value="-keystore"/>

          <arg value="${ios_keystore}"/>

          <arg value="-storepass"/>

          <arg value="${ios_pass}"/>

          <arg value="${ipa_file}"/>

          <arg value="${app_descriptor}"/>

          <arg value="${swf_file}"/>

          <arg value="-C" />

          <arg value="${class_path}"/>

          <arg value="assets/icons"/>

          <arg value="-C" />

          <arg value="${release_path}"/>

          <arg value="Default-Portrait.png"/>

     </java>

</target>

Thanks

This topic has been closed for replies.
Correct answer

You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html

Update your ANT script with these, and try again.

Please get back and tell if it resolved the issue and what change you had to made in your ANT script.

Thanks,

Neha

2 replies

Correct answer
December 4, 2012

You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html

Update your ANT script with these, and try again.

Please get back and tell if it resolved the issue and what change you had to made in your ANT script.

Thanks,

Neha

December 4, 2012

Thanks for the link. I used config *.xml produced by Flex with some modifications(basically removed absolute paths). Result swf is still not exactly same for me but app works on iPad now.

Best Regards, Aleksey