创建文件时出错。应用程序描述符文件中的意外或未知元素或属性。 Flash cc - air - xml文件

时间:2015-01-09 08:38:40

标签: xml actionscript-3 flash air

我正在尝试通过手动编辑XML在我的.ipa文件中添加一些图像(图标)。

我知道我应该编辑XML,使其成为只读,然后从Flash发布ipa。

但每次,Flash都说:

Error creating files . 
Unexpected or unknown element or attribute in the application descriptor file.
application.icon.image30*29 is an unexpected element/attribute"
image30*29 is a sample .

这是我的XML:

<?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/15.0">
  <id>air.SIRTET</id>
  <versionNumber>0.3.7</versionNumber>
  <versionLabel/>
  <filename>SIRTET</filename>
  <description/>
  <name>SIRTET</name>
  <copyright/>
  <initialWindow>
    <content>sirtetmobile.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>cpu</renderMode>
    <autoOrients>false</autoOrients></initialWindow>
  <icon>
    
    <image48x48>AppIconsForPublish/logo48.png</image48x48>
    <image72x72>AppIconsForPublish/logo72.png</image72x72>
    <image57x57>logo57.png</image57x57>
    <image114x114>logo114.png</image114x114>
    <image512x512>logo512.png</image512x512>
    <image50x50>logo50.png</image50x50>
    <image58x58>logo58.png</image58x58>
    <image100x100>logo100.png</image100x100>
    <image144x144>logo144.png</image144x144>
    <image1024x1024>logo1024.png</image1024x1024>
    <image29x29>logo29.png</image29x29>
	<image30x29>logo29.png</image30x29>
	  
	</icon>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
  <android>
    <manifestAdditions>
	</manifestAdditions>
  </android>
  <supportedLanguages>en</supportedLanguages>
  <iPhone>
    <InfoAdditions><![CDATA[
  <key>UIDeviceFamily</key>
  <array>
    <string>1</string>
    <string>2</string>
  </array>
]]></InfoAdditions>
    <requestedDisplayResolution>high</requestedDisplayResolution>
  </iPhone>
  </application>

1 个答案:

答案 0 :(得分:0)

错误消息说明了一切,<image30x29>logo29.png</image30x29>无效。对于图标,30px乘29px不是可接受的宽高比,所有图标必须是正方形。

引用Adobe AIR documentation


<强> imageNxN

定义相对于应用程序目录的图标的路径。

可以使用以下图标图像,每个图像指定不同的图标大小:

  • image16x16
  • image29x29(AIR 2 +)
  • image32x32
  • image36x36(AIR 2.5 +)
  • image48x48
  • image50x50(AIR 3.4 +)
  • image57x57(AIR 2 +)
  • image58x58(AIR 3.4 +)
  • image72x72(AIR 2 +)
  • image100x100(AIR 3.4 +)
  • image114x114(AIR 2.6 +)
  • image128x128
  • image144x144(AIR 3.4 +)
  • image512x512(AIR 2 +)
  • image1024x1024(AIR 3.4 +)

图标必须是PNG图形,其大小与图像元素指示的大小完全相同。图标文件必须包含在应用程序包中;应用程序描述符文档中引用的图标不会自动包含在内。