ios10相机等崩溃

作者: 某个胖子 | 来源:发表于2016-06-20 09:34 被阅读10003次

iOS10闪退 崩溃1:

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

意思是说:你需要在info.plist文件 添加一个“NSContactsUsageDescription ”的Key,Value添加一个描述。

需要在应用的info.plist里加入(使用source code模式):

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

WDC2106 iOS10新特性及开发者要注意什么

相关文章

网友评论

  • 学习学习中:你好,ImagePickerController.cameraViewTransform这个属性是不是不管用了? 该怎么解决调节自定义相机的坐标问题
    某个胖子:@学习学习中 这个在项目中没有使用过,不知道啊。你可以系统的头文件,一般都会有说明的。

本文标题:ios10相机等崩溃

本文链接:https://www.haomeiwen.com/subject/endwdttx.html