問題:Xcode9.1上傳IPA被駁回:
Missing Info.plist key - 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.
Missing Info.plist key - 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.
IOS10 開始對隱私權限更加嚴格, 如需使用隱私權限需要在工程的info.plist文件中聲明,如果不聲明程序在調用隱私權限(如相機)時應用程序會崩潰
離線打包用戶需要手動添加權限到打包工程的info.plist文件中:
大概統計了一下需要加的一些字段列在下面:
-
NSContactsUsageDescription -> 通訊錄
-
NSMicrophoneUsageDescription -> 麥克風
-
NSPhotoLibraryUsageDescription -> 相冊
-
NSCameraUsageDescription -> 相機
-
NSLocationAlwaysUsageDescription -> 地理位置
-
NSLocationWhenInUseUsageDescription -> 地理位置
-
Privacy - Bluetooth Peripheral Usage Description -> 藍牙權限
-
Privacy - Speech Recognition Usage Description -> 語音轉文字權限
-
Privacy - Calendars Usage Description -> 日歷權限
-
Privacy - Contacts Usage Description -> 通訊錄權限