1. 程式人生 > >解決“此構建版本無效”問題

解決“此構建版本無效”問題

今天提交版本到appStore的時候遇到了“此構建版本無效”的提示,在網上搜索一番,都是關於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的配置說明:點選連結 -> 配置獲取隱私資料許可權宣告