【问题标题】:UIRequiredDeviceCapabilities is invalid for iOS applicationUIRequiredDeviceCapabilities 对 iOS 应用程序无效
【发布时间】:2016-08-25 01:54:06
【问题描述】:

我正在尝试将 iOS 应用程序上传到 iTunes Connect,但是每次尝试上传应用程序时都会收到以下消息:

性能 - 2.3

我们无法安装该应用。 UIRequiredDeviceCapabilities Info.plist 中的键设置为应用程序不会 安装。

接下来的步骤

请检查 UIRequiredDeviceCapabilities 键以验证它 仅包含您的应用功能所需的属性或 设备上不能存在的属性。属性 如果需要,由字典指定应设置为 true 如果它们不能出现在设备上,则为 false。

我不明白我在 UIRequiredDeviceCapabilities 上做错了什么。

我的应用程序要求设备具有摄像头,因为它涉及读取 QR 码。

以下是我的 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>UIRequiredDeviceCapabilities</key>
    <array>
        <string>still-camera</string>
    </array>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIcons</key>
    <dict/>
    <key>CFBundleIcons~ipad</key>
    <dict/>
    <key>CFBundleIdentifier</key>
    <string>pw.whatsyourwifi.ios</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.1</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>5</string>
    <key>ITSAppUsesNonExemptEncryption</key>
    <false/>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>LSApplicationCategoryType</key>
    <string></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>

我查看了 Apple 提供的一些资源,例如: Expected App Behaviours List of Possible Values

感谢任何帮助,只是不知道我在这一点上做错了什么。

【问题讨论】:

    标签: ios app-store info.plist


    【解决方案1】:

    仅供参考,当我简单地回复应用拒绝说明我的 plist 文件根据文档是正确的(假设您的文件对您的应用和文档是正确的)时,这已为我解决了。他们接受了我。

    【讨论】:

      【解决方案2】:

      UIRequiredDeviceCapabilities的内容必须是字典,不能是数组;能力用作字典中的键,值必须设置为布尔值 true 或 false 以指示设备是否必须具有能力,或者必须具有能力。

      (在应用程序中禁止功能的实用性有点值得怀疑。例如,我不确定为什么让应用程序拒绝安装在带摄像头的设备上是有意义的。但这就是苹果放在那里,所以……)

      在你的情况下,这看起来像:

      <key>UIRequiredDeviceCapabilities</key>
      <dict>
          <key>still-camera</key>
          <true/>
      </dict>
      

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-11-08
      • 2016-12-18
      • 1970-01-01
      • 1970-01-01
      • 2015-06-29
      • 2016-04-28
      • 1970-01-01
      相关资源
      最近更新 更多