Skip to main content
Participant
October 26, 2012
Question

Problems packaging non debug swf for iOS

Hi all,

I'm using the latest 3.5 beta (saw the same problem using 3.4). When i package de swf for iOS i got this error:

Packaging failed!

Packaging error message:

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

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

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

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

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

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

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

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

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

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

          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:582)

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

ONLY if the swf is a release one (not debug). I'm using this parameters:

  /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/bin/adt

    -package

    -target

    ipa-test

    -storetype

    pkcs12

    -keystore

    ios/joseba.p12

    -storepass

    ****

    -provisioning-profile

    ios/certificados/Social_Futbol.mobileprovision

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/ios/Canal+ Social Futbol.ipa

    ios/canalplus-socialfutbol-app.xml

    -C

    ios

    canalplus-socialfutbol_tv.swf

    -e

    ios/background.mp4

    background.mp4

    -e

    flash/assets/tv.swf

    tv.swf

    -platformsdk

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/

If I use this with the debug swf the ipa gets generated right:

  /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/bin/adt

    -package

    -target

    ipa-debug

    -listen

    7936

    -storetype

    pkcs12

    -keystore

    ios/joseba.p12

    -storepass

    ****

    -provisioning-profile

    ios/certificados/Social_Futbol.mobileprovision

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/ios/Canal+ Social Futbol.ipa

    ios/canalplus-socialfutbol-app.xml

    -C

    ios

    canalplus-socialfutbol_tv.swf

    -e

    ios/background.mp4

    background.mp4

    -e

    flash/assets/tv.swf

    tv.swf

    -platformsdk

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/

Any idea of what could be the problem? Thanks in advance

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

October 26, 2012

Did you have to use a native extension, and did a merge into swf for the extension SWC, instead of using external linkage?

Translate
Participant
October 26, 2012

Nope, not native extensions used The only unusual thing is that i use custom metadata tags

Here are the full options of the compiler:

Compiler arguments:

  -output

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/ios/canalplus-socialfutbol_tv.swf

  -+configname=air +flexlib=

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks

  --compiler.debug=false

  --debug-password=

  --compiler.source-path+=

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/classes

  --compiler.library-path+=

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/MonsterDebugger.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/analytics.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/greensock.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/rosa.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/greensock.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/titan.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/GraphAPI_Web_1_8_1.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/as3corelib.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/parsley-flash-2.4.0.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/spicelib-flash-2.4.0.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/assets_tv.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/parsley-core-3.0.0.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/spicelib-commands-3.1.1.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/spicelib-reflect-3.0.0.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/spicelib-util-3.0.0.swc,

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/libs/air/airglobal.swc,

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/libs/core.swc,

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/libs/osmf.swc,

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/libs/textLayout.swc,

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/libs/air/servicemonitor.swc,

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/libs/refr3shlib.swc

  -static-link-runtime-shared-libraries=

    true

  -target-player=11.1

  -library-path+=

    /Users/7daysofrain/Documents/aslibs/flex_sdk_4.6.0.23201B/frameworks/locale/en_US

  -default-size=960,640

  -swf-version=13

  -keep-as3-metadata+=Asset,Assets,

    AssetsReady,AssetsContainer,FrameScript

  --

    /Users/7daysofrain/Documents/Proyectos/canalplus-socialfutbol/flash/classes/canalplus/socialfutbol/MainTV.as

Translate
October 26, 2012

Are you using ANT to compile your swf? Probably, your custom metadata tags are not getting recignized.

You may find some pointers here:

http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-builder-flex.html

Translate