Skip to main content
February 13, 2013
Question

AIR 3.6 SDK + ASC2.0+iOS ipa-ad-hoc, error

  • February 13, 2013
  • 6 replies
  • 2115 views

Hi,

I have download this morning AIR SDK 3.6 with ASC2.0. (offccial relase)

1) ADL, no problems, I had to readjust a few things in the code but all works fine

2) Package targeting ipa-debug-interpreter, compiles and packages ok

3) Package targeting ipa-ad-hoc I have the following error:

[java] C:\workspace\myApp\temp\myApp-app.xml: error 304: Initial window content is invalid

Any ideas where is this coming from? (I guess it is the -app.xml but works fine targetting ipa-debug-interpreter)

This is the -app.xml:

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

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

    <id>com.lessrain.MyApp</id>

    <filename>MyApp</filename>

    <name>My App</name>

    <copyright>Copyright © 2013 Less Rain LTD. All rights reserved.</copyright>

    <versionNumber>0.0.30</versionNumber>

    <initialWindow>

        <content>MyApp.swf</content>

        <systemChrome>standard</systemChrome>

        <transparent>false</transparent>

        <autoOrients>true</autoOrients>

        <fullScreen>false</fullScreen>

        <renderMode>direct</renderMode>

        <aspectRatio>portrait</aspectRatio>

        <visible>true</visible>

        <depthAndStencil>false</depthAndStencil>

    </initialWindow>

    <supportedProfiles>mobileDevice</supportedProfiles>

    <supportedLanguages>en</supportedLanguages>

    <icon>

        <image1024x1024>icons/MyApp-1024x1024.png</image1024x1024>

        <image512x512>icons/MyApp-512x512.png</image512x512>

        <image144x144>icons/MyApp-144x144.png</image144x144>

        <image114x114>icons/MyApp-114x114.png</image114x114>

        <image100x100>icons/MyApp-100x100.png</image100x100>

        <image72x72>icons/MyApp-72x72.png</image72x72>

        <image58x58>icons/MyApp-58x58.png</image58x58>

        <image57x57>icons/MyApp-57x57.png</image57x57>

        <image50x50>icons/MyApp-50x50.png</image50x50>

        <image48x48>icons/MyApp-48x48.png</image48x48>

        <image36x36>icons/MyApp-36x36.png</image36x36>

        <image29x29>icons/MyApp-29x29.png</image29x29>

    </icon>

    <iPhone>

        <InfoAdditions><![CDATA[

                <key>FacebookAppID</key>

                    <string>xxxxxxxxxxxxx</string>

                <key>UIDeviceFamily</key>

                <array>

                    <string>1</string>

                </array>

                <key>CFBundleURLTypes</key>

                    <array>

                        <dict>

                            <key>CFBundleURLSchemes</key>

                            <array>

                                <string>fbxxxxxxxxxxxxx</string>

                            </array>

                        </dict>

                    </array>

                <key>UIStatusBarStyle</key>

                <string>UIStatusBarStyleBlackOpaque</string>

                <key>UIRequiresPersistentWiFi</key>

                 <string>YES</string>

                <key>UIAppFonts</key>

                <array>

                    <string>FF_DIN_Condensed_Black.otf</string>

                </array>

                <key>UIRequiredDeviceCapabilities</key>

                <array>

                    <string>still-camera</string>

                    <string>front-facing-camera</string>

                </array>       

            ]]></InfoAdditions>

        <requestedDisplayResolution">high</requestedDisplayResolution>

    </iPhone>

    <extensions>

         <extensionID>pl.mateuszmackowiak.nativeANE.NativeAlert</extensionID>

         <extensionID>pl.mllr.extensions.nativeUtils</extensionID>

         <extensionID>com.distriqt.Compass</extensionID>

         <extensionID>com.distriqt.Camera</extensionID>

         <extensionID>com.distriqt.NetworkInfo</extensionID>

         <extensionID>net.digitalprimates.volume</extensionID>

         <extensionID>com.milkmangames.extensions.GoViral</extensionID>

    </extensions>

</application>

Thanks

Luis

This topic has been closed for replies.

6 replies

February 13, 2013

Can you share the command you are using to package?

Also, remove the quotes from <requestedDisplayResolution> tag

February 13, 2013

Hi neh. Yes the quoates are not in the final code, I paste them in the post by mistake. I was in the proess of testingthe new attributes to exclude devices.

I'm using FDT to compile:

The ${SDK_PATH} ->SDK_PATH=C\:/Program Files/Adobe/flex_sdk_4.6.0_air36_asc2

The ${adt} -> adt=/lib/adt.jar

<target name="package-IPA-Ad-Hoc-Release" depends="prepare-iOS-settings-bundle,prepare-iOS-adHoc">

        <java jar="${SDK_PATH}${adt}" fork="true" failonerror="true">

            <arg value="-package" />

            <arg value="-target" />

            <arg value="ipa-ad-hoc" />

            <!-- NATIVE_SIGNING_OPTIONS -->

            <arg value="-provisioning-profile" />

            <arg value="certificates/${certificate.ios.adHoc.provisioning}" />

            <arg value="-storetype" />

            <arg value="pkcs12" />

            <arg value="-keystore" />

            <arg value="certificates/${certificate.ios.adHoc}" />

            <arg value="-storepass" />

            <arg value="${certificate.ios.adHoc.password}" />

            <!-- Name Of File To Create-->

            <arg value="${project.publish.path}/${build.number}/${iOS.file.publish}" />

            <!-- App Descriptor-->

            <arg value="${app.temp-descriptor}" />

            <!-- Native Extensions -->

            <arg value="-extdir" />

            <arg value="${iOS.app.extensions}" />

            <arg value="-C" />

            <arg value="${project.bin.path}/" />

            <!-- Files To Package -->

            <arg value="${compile.target}" />

            <arg value="${app.include.assets}" />

            <arg value="${app.include.icons}" />

            <arg value="Settings.bundle" />

            <!-- Splash screen -->

            <arg value="-C" />

            <arg value="${project.bin.path}/splash-screen" />

            <arg value="Default.png" />

            <arg value="Default@2x.png" />

            <arg value="Default-568h@2x.png" />

            <!-- Include Fonts -->

            <arg value="-C" />

            <arg value="${project.temp-fonts.path}" />

            <arg value="." />

        </java>

        <delete dir="${project.temp.path}" />

        <delete dir="${project.temp-fonts.path}" />

    </target>

February 13, 2013

This error should come up if there is something wrong with your swf, MyApp.swf. eg. if its some other file renamed to a .swf. Can you tell the output of the following command(1st few lines):

java -jar Flex SDk path/lib/swfdump.jar <path to MyApp.swf>