我试图上传iOS应用程序到iTunes Connect中无效,但每次我尝试上传应用程序,我得到以下信息:UIRequiredDeviceCapabilities是iOS应用程式的
性能 - 2.3
我们无法安装该应用程序。 Info.plist中的UIRequiredDeviceCapabilities 密钥的设置方式应用程序不会安装 。
下一步
请检查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>
我已经看过了许多苹果提供的资源,如: Expected App Behaviours List of Possible Values
任何帮助表示赞赏,只是不知道我现在做错了什么。
Apple开发人员文档声明它可以是数组或字典:https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3 –