创建文件时出错。应用程序描述符文件中的意外或未知元素或属性。 Flash cc - 空气 - xml 文件
Error creating files. Unexpected or unknown element or attribute in the application descriptor file. Flash cc - air - xml file
我正在尝试通过手动编辑 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>
错误消息说明了一切,<image30x29>logo29.png</image30x29>
无效。 30px x 29px 不是可接受的图标宽高比,所有图标都必须是方形的。
图片NxN
定义图标相对于应用程序目录的路径。
可以使用以下图标图像,每个图标图像指定不同的图标大小:
- 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 图形,其大小与图像元素所指示的大小完全相同。图标文件必须包含在应用程序包中;应用程序描述符文档中引用的图标不会自动包含。
我正在尝试通过手动编辑 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>
错误消息说明了一切,<image30x29>logo29.png</image30x29>
无效。 30px x 29px 不是可接受的图标宽高比,所有图标都必须是方形的。
图片NxN
定义图标相对于应用程序目录的路径。
可以使用以下图标图像,每个图标图像指定不同的图标大小:
- 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 图形,其大小与图像元素所指示的大小完全相同。图标文件必须包含在应用程序包中;应用程序描述符文档中引用的图标不会自动包含。