Skip to main content
April 1, 2013
Question

Problem building for iOS: "Unable to find named traits"

  • April 1, 2013
  • 2 replies
  • 1725 views

I keep getting the following error when trying to publish an app I'm developing for iOS:

Error occurred while packaging the application:

Exception in thread "main" java.lang.Error: Unable to find named traits: mx.utils::Base64Encoder

          at adobe.abc.Domain.resolveTypeName(Domain.java:232)

          at adobe.abc.Domain.resolveTypeName(Domain.java:149)

          at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6775)

          at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:6019)

          at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4733)

          at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)

          at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)

          at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:532)

          at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:341)

          at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:599)

          at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:104)

Compilation failed while executing : ADT

I get this when trying to build for distribution and when trying to debug using the "standard" option, but if I use the "fast" option it publishes okay, but a 3d party library I'm using to generate SHA256 hahes and Base64 encoded strings doesn't perform as expected.

I'm also building this same project to Android and everything works fine on Android. I'm not referencing mx.utils.Base64Encoder anywhere in my code or config files or referenced projects.

I've tried including the framework swc in my project and I still get the error when publishing. I also tried recreating the project in case something had gotten correupted somehow and it still throws the same error while packaging.

This topic has been closed for replies.

2 replies

Participant
August 12, 2014

I am building with AIR 4.0 using IntelliJ IDEA... I get the following when I try to build for iOS iPad doing a debug build and using iOS7.1 SDK without fast packaging.

Exception in thread "main" java.lang.Error: Unable to find named traits public::e

I have seen this error on the forums in many variations (i.e. different Classes) -- They all 'seem' to relate to being unable to resolve to a specific Class? And some have resolved the issue by specifying the class path (not sure where, but it has been accepted as an answer).

My question is -- what the hell is public::e?

Participant
August 12, 2014

tremmy wrote:

I am building with AIR 4.0 using IntelliJ IDEA... I get the following when I try to build for iOS iPad doing a debug build and using iOS7.1 SDK without fast packaging.

Exception in thread "main" java.lang.Error: Unable to find named traits public::e

I have seen this error on the forums in many variations (i.e. different Classes) -- They all 'seem' to relate to being unable to resolve to a specific Class? And some have resolved the issue by specifying the class path (not sure where, but it has been accepted as an answer).

My question is -- what the hell is public::e?

Here is the full error:

Exception in thread "main" java.lang.Error: Unable to find named traits: public::e

  at adobe.abc.Domain.resolveTypeName(Domain.java:232)

  at adobe.abc.Domain.resolveTypeName(Domain.java:149)

  at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6775)

  at adobe.abc.GlobalOptimizer$SccpContext.commit(GlobalOptimizer.java:4448)

  at adobe.abc.GlobalOptimizer.sccp_modify(GlobalOptimizer.java:5919)

  at adobe.abc.GlobalOptimizer.sccp_modify(GlobalOptimizer.java:4781)

  at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4753)

  at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3615)

  at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2309)

  at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:534)

  at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:343)

  at com.adobe.air.ipa.GOAOTCompiler.convertAbcToLlvmBitcodeImpl(GOAOTCompiler.java:243)

  at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:85)

Compilation failed while executing : ADT

Adobe Employee
August 13, 2014

Hi Tremmy,

There should be some class with name e in the libraries that you are using. Please make sure that you have definitions of every class that has been used in code.

Thanks

Govind

Participant
April 23, 2014

Simular issue. Currently - no solution.

Error occurred while packaging the application:

Exception in thread "main" java.lang.Error: Unable to find named traits: mx.utils::Base64Encoder

          at adobe.abc.Domain.resolveTypeName(Domain.java:232)

          at adobe.abc.Domain.resolveTypeName(Domain.java:149)

          at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6703)

          at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5947)

          at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4660)

          at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3546)

Participating Frequently
July 30, 2014

Same issue here.  Complete blocker bug for us.