做外贸需要网站,seo服务商,做公司宣传册的网站,河南工程建设 协会网站iOS10 权限崩溃问题 原文: http://blog.csdn.net/runleelrg/article/details/51673025 今天 手机升级了 iOS10 Beta#xff0c;然后用正在开发的项目 装了个ipa包#xff0c;发现点击有关 权限访问 直接Crash了#xff0c;并在控制台输出了一些信息#xff1a; This app h…iOS10 权限崩溃问题 原文: http://blog.csdn.net/runleelrg/article/details/51673025 今天 手机升级了 iOS10 Beta然后用正在开发的项目 装了个ipa包发现点击有关 权限访问 直接Crash了并在控制台输出了一些信息 This app has crashed because it attempted to access privacy-sensitive data without a usage description. The apps Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data. 意思是说你需要在info.plist文件 添加一个“NSContactsUsageDescription ”的KeyValue添加一个描述。 1在项目中找到info.plist文件右击有个 Open As以Source Code 的形式打开 2分别复制 以下 Value 和KeyKey 一定不能错Value 貌似可以随便填写 相机权限描述 keyNSCameraUsageDescription/key stringcameraDesciption/string 通信录 keyNSContactsUsageDescription/key stringcontactsDesciption/string 麦克风 keyNSMicrophoneUsageDescription/key stringmicrophoneDesciption/string 相机 keyNSPhotoLibraryUsageDescription/key stringphotoLibraryDesciption/string eg:其他权限描述debug 控制台都会有输出的自行添加就OK 3在info.plist 文件上 复制上然后 保存如下图 Source Code 的形式 Property List 的展现形式 4Clean之后运行就OK了 欢迎加入iOS编程交流群77081333 转载于:https://www.cnblogs.com/apem/p/5721069.html