AIR 3.4 ADT Bug - Unable to use [Embed] Tags


i'm attempting use ant compile , package ios ipa file using adobe sdk tools. need use ant, because build requires tonne of ram, , flash builder gets java heap space issues when compile (even though i've increased max ram in ini file).

this core of ant build looks like:

 

    <!-- build swf , save in publish directory -->
<target name="3. compile swf" depends="2. build new directories">
   
<mxmlc
       
file="${main_class}"
       
output="${output_swf}"
       
debug="${debug_flag}"
       
failonerror="true">        
       
<load-config filename="${mobi_config_file}"/>
       
<define name="mobi_project::is_ios_build" value="${is_ios_build}" />
       
<define name="mobi_project::debug" value="${debug_flag}" />
       
<source-path path-element="${mobi_dir}/src"/>

       
<library-path file="${flex_home}/frameworks/locale/en_us" append="true"/>
       
<library-path dir="${mobi_lib_release_dir}" includes="*.swc" append="true"/>

       
<compiler.library-path dir="${flex_home}/frameworks" append="true">
           
<include name="libs/*" />
       
</compiler.library-path>

       
<compiler.external-library-path dir="${flex_home}/frameworks/libs/air">
           
<include name="**/*.swc" />
       
</compiler.external-library-path>
       
<compiler.external-library-path dir="${flex_home}/frameworks/libs">
           
<include name="**/*.swc" />
       
</compiler.external-library-path>          
       
<compiler.external-library-path dir="${flex_home}/frameworks/libs/mx">
           
<include name="**/*.swc" />
       
</compiler.external-library-path>
   
</mxmlc>
</target>

<!-- package application ipa file & save in publish directory -->
<target name="4. package application" depends="3. compile swf">
   
<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="${output_swf}"/>
   
</java>
</target>

i'm using flex 4.6 sdk air 3.4 beta sdk , using airmobile-config.xml sdk config file.

but when run following error:

4. package application:
[java] exception in thread "main" java.lang.error: unable find named traits: mx.core::soundasset
[java]     @ adobe.abc.domain.resolvetypename(domain.java:232)
[java]     @ adobe.abc.domain.resolvetypename(domain.java:149)
[java]     @ adobe.abc.globaloptimizer$inputabc.resolvetypename(globaloptimizer.java:272)
[java]     @ adobe.abc.globaloptimizer$inputabc.readinstance(globaloptimizer.java:1000)
[java]     @ adobe.abc.globaloptimizer$inputabc.readabc(globaloptimizer.java:390)
[java]     @ adobe.abc.globaloptimizer$inputabc.readabc(globaloptimizer.java:278)
[java]     @ adobe.abc.llvmemitter.generatebitcode(llvmemitter.java:320)
[java]     @ com.adobe.air.ipa.aotcompiler.convertabctollvmbitcodeimpl(aotcompiler.java:516)
[java]     @ com.adobe.air.ipa.bitcodegenerator.main(bitcodegenerator.java:80)
[java] compilation failed while executing : adt

if remove [embed] tags of audio, error still there, complains 'mx.core::bytearrayasset'. if remove every single [embed] tag in project, compiles ok.

i've tried force soundasset class embedded putting line in code:

import mx.core.soundasset;
...
new soundasset();

 

i've gone flex sdk , copied out soundasset , bytearrayasset classes , put them in project, none of these things help.

i've tried linking ant build flex swcs this:

<compiler.library-path dir="${flex_home}/frameworks/libs/mx" append="true"><include name="mx.swc"/></compiler.library-path>


<compiler.library-path dir="${flex_home}/frameworks/libs" append="true"> <include name="core.swc"/> </compiler.library-path>

but doesn't work either.

can please tell me how compile ipa file via ant while still keeping [embed] tags?


i've fixed problem!

i think problem in way linking libraries. ended deleting hand made ant settings , instead exporting settings flash builder project, , using those.

full details in article here, saved life: http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support