AS3 - Export to iOS?

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Post Reply
Chris2nd
Posts: 1
Joined: 16 Apr 2012, 15:59

AS3 - Export to iOS?

Post by Chris2nd »

Hey!

I am using API version: 1.0.2, developing with Flash CS 5.5.

When I try to export for iOS using the AS3 API, I receive an error that prevents me from publishing:

Code: Select all

Exception in thread "main" java.lang.Error: Unable to find named traits: com.smartfoxserver.v2::SmartFox
	at adobe.abc.Domain.resolveTypeName(Domain.java:225)
	at adobe.abc.Domain.resolveTypeName(Domain.java:142)
	at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
	at adobe.abc.GlobalOptimizer$InputAbc.resolveSlotType(GlobalOptimizer.java:889)
	at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:483)
	at adobe.abc.GlobalOptimizer$InputAbc.resolveTypes(GlobalOptimizer.java:411)
	at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:201)
	at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:350)
	at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:680)
	at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:216)
	at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:411)
	at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:87)
	at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:163)
	at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
	at com.adobe.air.ADT.run(ADT.java:361)
	at com.adobe.air.ADT.main(ADT.java:411)
Any idea how to resolve this?

I should mention that I'm able to export to an Android device just fine.
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: AS3 - Export to iOS?

Post by A51Integrated »

You need to include external libraries to the codebase - not as Runtime Shared Libraries or you’ll get that error.
In Flash Builder, you could use the compiler option “-compiler.include-libraries”. In the Flash IDE I'm not positive how that would work. I assume you've added the SWC in the main SWF AS3 properties settings. You may have to add it to the library.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Post Reply