Xcode:提交失败-IPA无效



经过数小时的研究,我不知道为什么我不能从xCode(6.1)提交申请。

在提交结束时,返回一个错误:

ERROR ITMS-90072: "The IPA is invalid It does not include a Payload directory."

我读到的两个响应位于info.plist文件中

必须添加两个密钥:

-LSRequesIPhoneOS:YES(布尔值)

-CFBundleInfoDictionaryVersion:6.0(字符串)

项目已清理。

这是我的文件info.plist:的内容

  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>CFBundleDevelopmentRegion</key>
    <string>fr_FR</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>com.forprodis.$(PRODUCT_NAME:rfc1034identifier)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>$(PRODUCT_NAME)</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>UILaunchStoryboardName</key>
    <string>Main</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UIStatusBarHidden</key>
    <true/>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
</dict>
</plist>

我已经生成IPA并将其解压缩。该文件夹包含两个子文件夹:

-应用程序

-符号

应该只显示Payload文件夹,不是吗?(包装)

维基百科描述的内容如下:

IPA具有用于iTunes和AppStore识别的内置结构,以下示例显示IPA:的结构

/有效载荷/

/有效载荷/应用程序.app

/iTunesArtwork

/iTunesMetadata.plist

我刚刚遇到了同样的问题。事实证明,应用内购买的权利缺失是罪魁祸首。选择您的目标,然后转到"功能"。Xcode强调了缺失的权利,并提出修复它。然后它终于奏效了。

我希望这对你也有用。在过去的几个小时里,我一直在把头发扯掉。

我在过去几年中多次成功提交的一个应用程序中也遇到了同样的问题。为了纠正它,我不得不编辑Info.plist文件以设置:

应用程序需要iPhone环境=是

我的设置为否。这并不限制应用程序部署到iPad或iPod。

最新更新