适用于iOS的Air - 应用程序中的意外或未知元素或属性

时间:2016-01-30 07:35:38

标签: ios xml air

我正在尝试打包ipa文件,但收到以下错误:

Error creating files. Unexpected or unknown element or attribute in the application descriptor file. application.iPhone is an unexpected element/attribute

我的开发环境:Win10,Flash CC 2015,Air 19.0.0.241。我也在使用Milkman游戏中的推送通知ANE。我正在使用生产证书和配置文件。最终我想在TestFlight上测试iOS上的应用程序。

我从其他开发者那里得到了一些建议,但没有人提出任何可行的解决方案。问题似乎出现在iPhone或权利标签中。

我也经历了Air Applications Descriptor Elements Documentation,但我已经想出了什么。

从iPhone标签的空中应用程序描述符文档中获取: 苹果手机 定义iOS特定的应用程序属性。 父元素:应用程序 子元素:     权益     externalSwfs     forceCPURenderModeForDevices     InfoAdditions     requestedDisplayResolution

任何人都可以帮我吗?这是他的代码:

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

<!--

    Usage:

    To localize the description, use the following format for the description element.

    <description>
    <text xml:lang="en">English App description goes here</text>
    <text xml:lang="fr">French App description goes here</text>
    <text xml:lang="ja">Japanese App description goes here</text>
    </description>

     To localize the name, use the following format for the name element.

    <name>
   <text xml:lang="en">English App name goes here</text>
   <text xml:lang="fr">French App name goes here</text>
   <text xml:lang="ja">Japanese App name goes here</text>
    </name>

-->

<application xmlns="http://ns.adobe.com/air/application/19.0">
  <id>com.myapp.app</id>
  <versionNumber>1.2.1</versionNumber>
  <filename>MyAppName</filename>
  <description/>

  <name>MyAppName</name>

  <initialWindow>
    <content>MyApp.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <aspectRatio>landscape</aspectRatio>
    <renderMode>direct</renderMode>
    <autoOrients>true</autoOrients></initialWindow>

  <icon>

    <image29x29>Icons/ah_29.png</image29x29>
   <image57x57>Icons/ah_57.png</image57x57>
   <image114x114>Icons/ah_114.png</image114x114>
    <image512x512>Icons/ah_512.png</image512x512>
    <image48x48>Icons/ah_48.png</image48x48>
    <image72x72>Icons/ah_72.png</image72x72>
    <image50x50>Icons/ah_50.png</image50x50>
    <image58x58>Icons/ah_58.png</image58x58>
    <image100x100>Icons/ah_100.png</image100x100>
    <image144x144>Icons/ah_144.png</image144x144>
    <image1024x1024>Icons/ah_1024.png</image1024x1024>
    <image40x40>Icons/ah_40.png</image40x40>
    <image76x76>Icons/ah_76.png</image76x76>
    <image80x80>Icons/ah_80.png</image80x80>
    <image120x120>Icons/ah_120.png</image120x120>
    <image152x152>Icons/ah_152.png</image152x152>

  </icon>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
   <supportedLanguages>en</supportedLanguages>


  <iPhone>
    <Entitlements>
<![CDATA[
<key>application-identifier</key>
<string>000000000.com.myapp.app</string>
<key>aps-environment</key>
<string>production</string>
<key>beta-reports-active</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>000000000.com.myapp.app</string>

</array>

]]>

</Entitlements>

    <requestedDisplayResolution>standard</requestedDisplayResolution>

</iPhone>



  <iPhone>
    <InfoAdditions><![CDATA[
  <key>UIDeviceFamily</key>
  <array>
    <string>1</string>
    <string>2</string>
  </array>
]]></InfoAdditions>

  </iPhone>


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

</application>

0 个答案:

没有答案