[修正] iOS 10 使用相机及相簿闪退的问题修正
iOS 10 新规定,在取用相机,相簿,联络资讯,麦克风需要在 Version Info 加入指定的 key,否则闪退:

注:将下面的 Key 复制到工程 Option -> Version Info 里(按鼠标右键可以新增 Key)
常用 Key
<key>NSPhotoLibraryUsageDescription</key>
<string>使用相簿需要您的同意</string> <key>NSCameraUsageDescription</key>
<string>使用相机需要您的同意</string> <key>NSContactsUsageDescription</key>
<string>使用联络资料需要您的同意</string> <key>NSMicrophoneUsageDescription</key>
<string>使用麦克风需要您的同意</string> 2018.01.08 新增:iOS 11.x 必需要加入下列,否則閃退 <key>NSPhotoLibraryAddUsageDescription</key>
<string>使用相簿需要您的同意</string>
完整列表:
Apple Music: <key>NSAppleMusicUsageDescription</key>
<string>My description about why I need this capability</string> Bluetooth: <key>NSBluetoothPeripheralUsageDescription</key>
<string>My description about why I need this capability</string> Calendar: <key>NSCalendarsUsageDescription</key>
<string>My description about why I need this capability</string> Camera: <key>NSCameraUsageDescription</key>
<string>My description about why I need this capability</string>
Contacts: <key>NSContactsUsageDescription</key>
<string>My description about why I need this capability</string> Health Share: <key>NSHealthShareUsageDescription</key>
<string>My description about why I need this capability</string> Health Update: <key>NSHealthUpdateUsageDescription</key>
<string>My description about why I need this capability</string> Home Kit: <key>NSHomeKitUsageDescription</key>
<string>My description about why I need this capability</string> Location: <key>NSLocationUsageDescription</key>
<string>My description about why I need this capability</string> Location (Always): <key>NSLocationAlwaysUsageDescription</key>
<string>My description about why I need this capability</string> Location (When in use): <key>NSLocationWhenInUseUsageDescription</key>
<string>My description about why I need this capability</string> Microphone: <key>NSMicrophoneUsageDescription</key>
<string>My description about why I need this capability</string> Motion (Accelerometer): <key>NSMotionUsageDescription</key>
<string>My description about why I need this capability</string> Photo Library: <key>NSPhotoLibraryUsageDescription</key>
<string>My description about why I need this capability</string> Reminders: <key>NSRemindersUsageDescription</key>
<string>My description about why I need this capability</string> Siri: <key>NSSiriUsageDescription</key>
<string>My description about why I need this capability</string> Speech Recognition: <key>NSSpeechRecognitionUsageDescription</key>
<string>My description about why I need this capability</string>
Apple 官方列表:
[修正] iOS 10 使用相机及相簿闪退的问题修正的更多相关文章
- iOS 10 使用相机及相簿闪退的问题修正
http://www.cnblogs.com/onechen/p/5935579.html
- iOS 10 因苹果健康导致闪退 crash-b
如果在app中调用了苹果健康,iOS10中会出现闪退.控制台报出的原因是: Terminating app due to uncaught exception 'NSInvalidArgumentEx ...
- iOS 10 因苹果健康导致闪退 crash
如果在app中调用了苹果健康,iOS10中会出现闪退.控制台报出的原因是: Terminating app due to uncaught exception 'NSInvalidArgumentEx ...
- iOS 10 开发 相机相关的适配
升级 iOS 10 之后目测坑还是挺多的,记录一下吧,看看到时候会不会成为一个系列. 直入正题吧 今天在写 Swift 3 相关的一个项目小小练下手,发现调用相机,崩了.试试看调用相册,又特么崩了.然 ...
- iOS 10 之后,相机权限问题及易出现的Crash
1: iOS 10 之后,访问相机需要设置相关的权限 麦克风权限:Privacy - Microphone Usage Description 是否允许此App使用你的麦克风? 相机权限: Priva ...
- phonegap创建的ios项目推送消息出现闪退现象
使用phonegap创建的ios项目,推送消息时,当程序在前台运行或者在后台运行状态下,推送消息过来,可以解析并且跳转: 但是在程序从后台退出的状态下,当消息推送过来的时候,点击通知栏,打开程序,程序 ...
- Ubuntu18.10下运行blender2.80bate闪退(问题?)
Ubuntu18.10下直接运行blender2.80bate闪退, 运行blender2.79正常. ================= root@tom-laptop:/# uname -aLin ...
- iOS 10 新特性 大汇总 及iOS 10 的一些小问题和 xcode 8 的新版本小问题
iOS 10正式版是很值得升级的,特别是那些不打算购买iPhone 7的老用户,毕竟新系统在体验.流畅性上都做了一些升级. 1.开放电话接口 支持垃圾电话提醒 对于使用iPhone的国人来说,这个功能 ...
- iOS开发-闪退问题-解决之前上架的 App 在 iOS 9 会闪退问题
最新更新:(2015.10.02) 开发环境: Delphi 10 Seattle OS X El Capitan v10.11 需使用下列 HotfixID: 30398, PAServer Hot ...
随机推荐
- [.net 面向对象程序设计进阶] (12) 序列化(Serialization)(四) 快速掌握JSON的序列化和反序列化
[.net 面向对象程序设计进阶] (12) 序列化(Serialization)(四) 快速掌握JSON的序列化和反序列化 本节导读: 介绍JSON的结构,在JS中的使用.重点说明JSON如何在.N ...
- sqlalchemy(一)基本操作
sqlalchemy(一)基本操作 sqlalchemy采用简单的Python语言,为高效和高性能的数据库访问设计,实现了完整的企业级持久模型. 安装 需要安装MySQLdb pip install ...
- [nRF51822] 7、基础实验代码解析大全(前十)
实验01 - GPIO输出控制LED 引脚输出配置:nrf_gpio_cfg_output(LED_1); 引脚输出置高:nrf_gpio_pin_set(LED_1); 引脚电平转换:nrf_gpi ...
- ASP.NET MVC 从零开始 - Web.config
这篇文章是从我的 github 博客 http://lxconan.github.io 导入的. 在上一篇中,我们从零开始创建了一个非常简单的 ASP.NET MVC 应用程序.接下来,你是不是期望我 ...
- fir.im Log Guru 正式开源,快速找到 iOS 应用无法安装的原因
很开心的宣布 Log Guru 正式开源! Log Guru,是 fir.im 开发团队创造的小轮子,用在 Mac 电脑上的日志获取,Github 地址:FIRHQ/LogGuru. Log Guru ...
- Nginx重写
一.location匹配 1.分类:(1)正则location:~,~*(2)普通location:=,^~,@,无2.匹配规则:(1) = 精确匹配.如果找到,停止搜索(2) ^~ 普通 ...
- angularjs揭秘
angularjs揭秘
- 前端学php之常量
× 目录 [1]定义常量 [2]常量检测 [3]系统常量[4]魔术常量 前面的话 常量在javascript中并不存在,在php中却是与变量并列的重要内容.常量类似变量,但常量一旦被定义就无法更改或撤 ...
- JavaScript变量声明提前
上周四吃完午饭,leader发了一道JavaScript的题目给我们做,我们Team里面有做前端的,有做后台的,也有做mobile web的,所以大家对题目的理解各自都不一样,然后在QQ讨论组里面进行 ...
- Objective-C中把URL请求的参数转换为字典
上一篇博客中是把URL转换为字典,那么我们如何把URL请求中的参数封装成字典,然后再封装成数组呢?对OC中字符串操作熟练的小伙伴们应该觉得这是一个a+b的问题,没错把URL中的参数转换为字典主要是对字 ...