Skip to main content
Participant
December 6, 2013
Question

ADT command line errors (java throws an exception)

  • December 6, 2013
  • 0 replies
  • 343 views

I am having a Flex web project and its compiled build (web.swf) , by using this swf file i want to package an ios app using Adobe Developer Tool Command line by the following command.

The web.mxml file is as follows:

<?xml version="1.0" encoding="utf-8"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"  xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160">

    <s:Label text="Hello World" fontSize="18" fontWeight="bold" color="green"/>

</s:Application>

The web-app.xml file is as follows:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/3.9">

    <id>Com.AppId</id>

    <filename>web</filename>

    <name>web</name>

    <versionNumber>1.1.0</versionNumber>

    <initialWindow>

        <content>web.swf</content>

        <systemChrome>none</systemChrome>

        <transparent>true</transparent>

        <renderMode>gpu</renderMode>

        <autoOrients>true</autoOrients>

        <fullScreen>true</fullScreen>

        <visible>true</visible>

    </initialWindow>

    <iPhone>

        <InfoAdditions>

            <![CDATA[

                <key>UIDeviceFamily</key>

                <array>

                    <string>1</string>

                    <string>2</string>

                </array>

                <key>UIStatusBarStyle</key>

                <string>UIStatusBarStyleBlackOpaque</string>

                <key>UIRequiresPersistentWiFi</key>

                <string>No</string>

            ]]>

        </InfoAdditions>

    </iPhone>

</application>

The ADT Command line is as follows:

adt -package -target ipa-debug -keystore ..\cer\Cert.p12 -storetype pkcs12 -provisioning-profile ..\cer\*.mobileprovision ..\bin\web.ipa web-app.xml web.swf

Now the ADT compiler thrown me the following error:

Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application

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

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

        at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:273)

        at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:1010)

        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:391)

        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:279)

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

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

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

    Compilation failed while executing : ADT

Please help me if any one knows the the reason.........Thanks in advance

This topic has been closed for replies.