Unable to find named traits: com.company.artAsset iOS Retina/Standard
when try package application ad-hoc or app-store on ios compiler:
[java] exception in thread "main" java.lang.error: unable find named traits: com.company::artassetclip
[java] @ adobe.abc.domain.resolvetypename(domain.java:232)
[java] @ adobe.abc.domain.resolvetypename(domain.java:149)
[java] @ adobe.abc.globaloptimizer.sccp_eval(globaloptimizer.java:6775)
[java] @ adobe.abc.globaloptimizer.sccp_analyze(globaloptimizer.java:6019)
[java] @ adobe.abc.globaloptimizer.sccp(globaloptimizer.java:4733)
[java] @ adobe.abc.globaloptimizer.optimize(globaloptimizer.java:3615)
[java] @ adobe.abc.globaloptimizer.optimize(globaloptimizer.java:2309)
[java] @ adobe.abc.llvmemitter.optimizeabcs(llvmemitter.java:532)
[java] @ adobe.abc.llvmemitter.generatebitcode(llvmemitter.java:341)
[java] @ com.adobe.air.ipa.aotcompiler.convertabctollvmbitcodeimpl(aotcompiler.java:611)
[java] @ com.adobe.air.ipa.bitcodegenerator.main(bitcodegenerator.java:104)
[java] compilation failed while executing : adt
i have searched forums , many people have had error solution suggested statically link assets or code swc.
in case not option , perhaps have reached dead end method.
what trying achieve support both retina , normal ipads. have our hud assets in flash , have made 2 versions of assets, retina , nonretina.
the idea have code
var popupclip:fancypopup = new fancypopup();
then there fancypopup.swf , fancypopup-2x.swf loaded depending on if on retina device or not.
this works on web , if application packaged interpeter. assumed method work after swf loading allowed on ios
here link project set our main project, , can reproduce problem.
https://dl.dropboxusercontent.com/u/154782/assetmultiprojecttestfield.zip
my question is, method possible? can disable optimization of particular classes. can do?
because alterntatively have go through assets , have retina graphic exported different linkage names , pollute code everywhere :
if (retina)
_clip = fancypopupclip2x();
else
_clip = fancypopupclip();
because of size of our code base , assets avoid know if dynamic loading of swf not work in case.
currently using flex 4.6 air 3.7 build
this feature in air3.7 might of - http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
More discussions in AIR Development
adobe
Comments
Post a Comment