尝试为 i-pad 放置一个 flash 项目,但在 itunes 上它作为 i-phone 应用程序出现

Trying to put a flash project for i-pad but on itunes it comes up as an i-phone app

我正在用 Flash as3 制作 i-pad 应用程序。我拥有所有证书并且能够将其上传到 i-tunes,但是它出现在 i-phone 应用程序下,而不是 i-pad 应用程序下,当我将它下载到我的 i-pad 上时,它是 i-phone尺寸。有人告诉我,这个问题的解决方案应该放在 xml 文档中,但即使在网上搜索了大量内容后,我也找不到如何编辑该文档。如果有人有任何想法,这里是完整的 xml 文档

<?xml version="1.0" encoding="utf-8" ?> 
<application xmlns="http://ns.adobe.com/air/application/18.0">

<id>za.co.brandfoundry</id>
<versionNumber>0.1</versionNumber>
<supportedProfiles>mobileDevice</supportedProfiles>
<filename>Whiskeyfori-pad</filename>

<name>Whiskey for i-pad</name>
<description></description>
<copyright></copyright>

<android>
    <manifestAdditions><![CDATA[

        <manifest android:installLocation="auto">
          <uses-sdk android:minSdkVersion="8"/>
            <uses-permission android:name="android.permission.INTERNET"/>
            <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
        </manifest>

    ]]></manifestAdditions>
</android>
<iPhone> 
    <InfoAdditions><![CDATA[ 

        <key>UIStatusBarStyle</key> 
        <string>UIStatusBarStyleBlackOpaque</string> 
        <key>UIRequiresPersistentWiFi</key> 
        <string>NO</string>
        <key>UIPrerenderedIcon</key>  
        <true/>
        <key>UIApplicationExitsOnSuspend</key>
        <true/>

        <key>UIDeviceFamily</key>
        <array>
            <!-- iPhone support -->
            <string>1</string> 
            <!-- iPad support -->
            <!--<string>2</string>-->
        </array>

    ]]></InfoAdditions> 
    <requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone> 

<initialWindow>
    <title>Whiskey for i-pad</title>
    <content>Whiskeyfori-pad.swf</content>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <!--<autoOrients>false</autoOrients>-->
    <!--<aspectRatio>landscape</aspectRatio>-->
    <renderMode>direct</renderMode>
    <!--<depthAndStencil>true</depthAndStencil>--> <!-- required for 3D -->
</initialWindow>

<icon>
    <image48x48>icons/icon_48.png</image48x48>
    <image57x57>icons/icon_57.png</image57x57>
    <image72x72>icons/icon_72.png</image72x72>
    <image76x76>icons/icon_76.png</image76x76>
    <image96x96>icons/icon_96.png</image96x96>
    <image114x114>icons/icon_114.png</image114x114>
    <image120x120>icons/icon_120.png</image120x120>
    <image144x144>icons/icon_144.png</image144x144>
    <image152x152>icons/icon_152.png</image152x152>
    <!--<image512x512>icons/icon_512.png</image512x512>-->
</icon>

<!-- 
AIR options:
http://livedocs.adobe.com/flex/3/html/File_formats_1.html#1043413

AIR mobile options:
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html

iOS icons guidelines:
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

Android manifest documentation:
http://developer.android.com/guide/topics/manifest/manifest-intro.html
-->

您需要在 xml 清单文件中取消注释 <!--<string>2</string>-->。我可以看到评论中已经回答了这个问题,但在你的问题中你说它是一个 iPad 应用程序。要限制您的应用仅在 iPad 上可用,您需要注释掉行 <string>1</string>.

编辑: 虽然这不是您问题答案的一部分,但请记住这一行:<name>Whiskey for i-pad</name> 是您的应用程序名称在您的设备上的显示方式。此名称不必是唯一的,因此您可以使用 Whiskey。 :)