【发布时间】:2015-02-16 15:53:38
【问题描述】:
经过数小时的研究,我不知道为什么我无法从 xCode (6.1) 提交申请。
提交结束时返回错误:
ERROR ITMS-90072: "The IPA is invalid It does not include a Payload directory."
我读过的两个响应位于 info.plist 文件中
必须添加两个键:
- LSRequiresIPhoneOS: 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 的结构:
/有效载荷/
/Payload/Application.app
/iTunesArtwork
/iTunesMetadata.plist
【问题讨论】:
-
如果您可以获得 IPA,您可以将其重命名为 zip 并解压缩,这不会解决您的问题,但可能会提供更多关于 正在发生的事情 的指示。