iOS 10 開發(fā)權限Crash問題

http://www.lxweimin.com/p/c212cde86877

This app has crashed because it attempted 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.

意思就是說,你需要在 info.plist 文件添加一個 NSPhotoLibraryUsageDescription
的 key,然后添加一個描述。

在項目中找到info.plist
文件,右鍵點擊以 Source Code 形式打開

<key>NSCameraUsageDescription</key> <string>cameraDesciption</string>
<key>NSContactsUsageDescription</key> <string>contactsDesciption</string> <key>NSMicrophoneUsageDescription</key> <string>microphoneDesciption</string>

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容