今天提交版本到appStore的时候遇到了“此构建版本无效”的提示,在网上搜索一番,都是关于Swift的介绍,解决方案见相关链接:
http://stackoverflow.com/questions/26163856/invalid-swift-support-invalid-implementation-of-swift
在连续提交了两次二进制文件提示“此构建版本无效”:
之后,苹果发来一封邮件,邮件内容如下:
Dear developer,
We have discovered one or more issues with your recent delivery for "歌匣子". To process your delivery, the following issues must be corrected:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
Though you are not required to fix the following issues, we wanted to make you aware of them:
Potential Loss of Keychain Access - The previous version of software has an application-identifier value of ['V545V3CXAP.com.ruanmeng.gexiazi'] and the new version of software being submitted has an application-identifier of ['H99H2YK68K.com.ruanmeng.gexiazi']. This will result in a loss of keychain access.
Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a distribution provisioning profile that includes the aps-environment entitlement. This will create the correct signature, and you can resubmit your app. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.
Once the required corrections have been made, you can then redeliver the corrected binary.
Regards,
The App Store team
原来是iOS10,需要在info.plist中配置关于使用用户麦克风,相册和相机的说明,关于兼容iOS10的配置说明:点击链接 -> 配置获取隐私数据权限声明