简体   繁体   English

使用UIRequiredDeviceCapabilities Corona SDK将应用程序提交到App Store时出错

[英]Error Submitting App To App Store with UIRequiredDeviceCapabilities Corona SDK

I have never changed my build settings and I submitted my app to the app store a couple weeks ago with no problem. 我从未更改过我的构建设置,几周前我将应用程序提交到了应用商店,没有任何问题。

I tried submitting an update today and I got the error 我今天尝试提交更新,但我收到了错误消息

This bundle is invalid. 此捆绑包无效。 An unknown device capability value is supplied in the UIRequiredDeviceCapabilities key of the Info.plist. Info.plist的UIRequiredDeviceCapabilities键中提供了未知的设备功能值。 Make certain that the value for UIRequiredDeviceCapabilities is an array or a dictoinary, containing valid values as described in the Information Property List Key Reference. 确保UIRequiredDeviceCapabilities的值是一个数组或二进制,包含有效值,如信息属性列表键参考中所述。

Here is a snippet of my build settings. 这是我的构建设置的片段。 If I comment out the microphone line, then everything works fine. 如果我注释掉麦克风线,那么一切正常。

iphone = {
    plist = {
        CFBundleVersion = "20130423",
        CFBundleShortVersionString = "3.1.1",
        CFBundleDisplayName = "App Name",
        CFBundleIdentifier = "com.example.mypackagename",
        UIRequiredDeviceCapabilities = "microphone",   -- <<---- this line is the problem
        UIStatusBarHidden = true,
        UIPrerenderedIcon = false, -- set to false for "shine" overlay
        --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
        CFBundleIconFile = "Icon.png",
        CFBundleIconFiles = {
           "Icon.png",
           "Icon@2x.png",
           "Icon-72.png"
         }
    }
},

Just change: 只是改变:

UIRequiredDeviceCapabilities = "microphone"

to: 至:

UIRequiredDeviceCapabilities = {"microphone"}

Note: 注意:

UIRequiredDeviceCapabilities expects it's value as an array or dictionary . UIRequiredDeviceCapabilities期望它作为arraydictionary的价值。 You are passing it as a string , that's why the issue is happening. 您将它作为string传递,这就是问题发生的原因。


Reference: 参考:

UIRequiredDeviceCapabilities UIRequiredDeviceCapabilities

UIRequiredDeviceCapabilities (Array or Dictionary - iOS) lets iTunes and the App Store know which device-related features an app requires in order to run. UIRequiredDeviceCapabilities(数组或字典 - iOS)让iTunes和App Store知道应用程序需要哪些与设备相关的功能才能运行。 iTunes and the mobile App Store use this list to prevent customers from installing apps on a device that does not support the listed capabilities. iTunes和移动App Store使用此列表阻止客户在不支持列出功能的设备上安装应用程序。

If you use an array, the presence of a given key indicates the corresponding feature is required. 如果使用数组,则给定键的存在表示需要相应的功能。 If you use a dictionary, you must specify a Boolean value for each key. 如果使用字典,则必须为每个键指定布尔值。 If the value of this key is true, the feature is required. 如果此键的值为true,则需要该功能。 If the value of the key is false, the feature must not be present on the device. 如果密钥的值为false,则该功能不得出现在设备上。 In both cases, omitting a key indicates that the feature is not required but that the app is able to run if the feature is present. 在这两种情况下,省略键表示该功能不是必需的,但如果该功能存在,则应用程序能够运行。

Check InfoPlistKeyReference for more details. 有关详细信息,请查看InfoPlistKeyReference

use this format 使用这种格式

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>microphone</string>
</array>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM