【发布时间】:2018-02-28 17:05:29
【问题描述】:
我向 App Store 提交了应用程序,但两次被拒绝,因为他们无法在 iPhone 和 iPad 上安装该应用程序。他们说 Info.plist 中的 UIRequiredDeviceCapabilities 键的设置方式是应用程序不会安装在 iPhone 和 iPad 上。
他们写道,接下来的步骤是:
要解决此问题,请检查 UIRequiredDeviceCapabilities 密钥以验证它是否仅包含您所需的属性 应用程序功能或设备上不得存在的属性。 字典指定的属性应设置为 true,如果它们是 如果它们不能出现在设备上,则为 required 和 false。
第一次提交后,我完全删除了 UIRequiredDeviceCapabilities 密钥,但他们仍然无法安装它。
我没有 iPhone 或 iPad,我在模拟器上测试了应用程序,它运行正常。
这是我的 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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</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>CFBundleVersion</key>
<string>3</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiresFullScreen</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
有谁知道如何修改它以便可以安装在 iPhone 和 iPad 上?
【问题讨论】:
-
这是他们给你的唯一信息? “无法安装”?
-
@GIJOW 是的,问题出在 UIRequiredDeviceCapabilities。
-
我认为你需要找到一种方法在真实设备上进行测试。
标签: ios