IOS提交審核 Missing Info.plist key問題


 問題: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 -> 通訊錄權限


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM