iOS 10 由于获取系统权限问题导致崩溃的那些坑

错误:获取通讯录练习(你的项目名称).app-- Verify the Developer App certificate for your account is trusted on your device. Open Settings on 炯 and navigate to General -> Device Management, then select your Developer App certificate to trust it.

修改:在自己的真机手机里面的通用设备管理里面把这个项目设置成信任就ok啦。

错误:This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.

修改:这个是获取系统数据的错误,需要在Info.plist文件里面添加数据就ok啦,


除了相册的权限,iOS10之后如下的权限请求也是需要我们填写请求描述的,在这里也给大家提醒一下:

Privacy - Microphone Usage Description//麦克风权限

Privacy - Contacts Usage Description//通讯录权限

Privacy - Camera Usage Description//摄像头权限

Privacy - NSSiriUsageDescription//Siri的权限

Privacy - Bluetooth Peripheral Usage Description//蓝牙

Privacy - Reminders Usage Description//提醒事项

Privacy - Motion Usage Description//运动与健康

Privacy - Media Libaray Usage Description//媒体资源库

Privacy - Calendars Usage Description//日历

你可能感兴趣的:(iOS 10 由于获取系统权限问题导致崩溃的那些坑)