2016-08-25 68 views
0

我试图上传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

任何帮助表示赞赏,只是不知道我现在做错了什么。

回答

0

UIRequiredDeviceCapabilities的内容必须是字典,而不是数组;该能力被用作字典中的键,并且必须将该值设置为布尔真或假以指示设备是否必须具有该能力,或者必须要求而不是有能力。例如,我不确定为什么有一个应用程序拒绝安装在带相机的设备上是合理的,但这是苹果公司摆在那里,所以......)

在你的情况,这将是这样的:

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

Apple开发人员文档声明它可以是数组或字典:https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW3 –

0

仅供参考,这是解决对我来说,当我简单地回答了应用程序拒绝,说明我的plist文件是正确的每个文档(假设你的应用和文档是正确的)。他们接受了我。

相关问题