iOS

iOS 10 开发权限Crash问题

2016-10-08  本文已影响6人  NieFeng1024

http://www.jianshu.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>

上一篇 下一篇

猜你喜欢

热点阅读