这是我两次因拒绝而从苹果收到此消息。
来自苹果
2.3 - 性能不符合开发者宣传的应用程序将被拒绝
2.3 详细信息
我们尝试审核您的应用,但无法在 iPhone 上安装该应用。 Info.plist 中的 UIRequiredDeviceCapability 键的设置方式使得该应用程序不会安装在 iPhone 上。
后续步骤
请检查 UIRequiredDeviceCapability 键以验证它是否仅包含您的应用功能所需的属性或设备上不得存在的属性。如果字典指定的属性是必需的,则应将其设置为 true;如果设备上不得存在,则应将其设置为 false。
这是我提交的 info.plist。查看他们所说的问题所在的关键“UIRequiredDeviceCapability”。
<?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>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
<key>CFBundleIdentifier</key>
<string>com.yourvoice.chatomic</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.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>107</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>f1e34e6abf0c05dfe5254ef3cc5debf97924e90b</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allow to use current location?</string>
<key>UIAppFonts</key>
<array>
<string>OpenSans-Light.ttf</string>
<string>OpenSans-Semibold.ttf</string>
<string>OpenSans-Bold.ttf</string>
<string>OpenSans-Italic.ttf</string>
<string>OpenSans-Regular.ttf</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
<string>voip</string>
</array>
<key>UILaunchStoryboardName</key>
<string>ActivityIndicatorView</string>
<key>UIMainStoryboardFile</key>
<string>MainChatomicStoryboard</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
<string>armv6</string>
<string>gps</string>
<string>location-services</string>
<string>wifi</string>
</array>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
最佳答案
您需要使用 <string>armv7</string>
和<string>armv6</string>
出来。
与 UIRequiredDeviceCapabilities
您是说该应用程序仅适用于具有列出的功能的设备。因此,您是说您只支持 armv6
的设备和armv7
,这是矛盾的。
请注意,如果您的应用程序可以在没有 gps
的情况下运行(例如在 iPod Touch 上)那么您也需要将这些按键取出,只有在您绝对需要时才将它们放在那里。
关于iPhone 应用程序因 UIRequiredDeviceCapability 而被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36591243/