[修正] 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 ...
随机推荐
- jws.mono脚本安装详解
就在最近两天,最新版本的jws.mono上线了,这个版本除了提供与之前版本拥有的功能外,还额外提供了一个“自动化”的安装脚本,通过执行该脚本,jws.mono将自动快速的安装到指定的目录,同时,通过改 ...
- WCF服务的异常消息
原创地址:http://www.cnblogs.com/jfzhu/p/4055024.html 转载请注明出处 WCF Service发生异常的时候,客户端一般只能看见这样一个错误:“The ser ...
- 前端:圆图头像制作--border-radius : 100%
异常处理汇总-前端系列 http://www.cnblogs.com/dunitian/p/4523015.html border-radius : 100% border-radius: 6px; ...
- GO语言的开源库
Indexes and search engines These sites provide indexes and search engines for Go packages: godoc.org ...
- Gridview里添加合计行
ShowFooter="true" ; ; ; protected void gvIncomeYG_RowDataBound(object sender, GridViewRowE ...
- Minor【 PHP框架】5.事件
框架Github地址:github.com/Orlion/Minor (如果觉得还不错给个star哦(^-^)V) 框架作者: Orlion 知乎:https://www.zhihu.com/peop ...
- Python第一天 - 函数
---恢复内容开始--- (一)定义一个函数 def 函数名(参数): 函数体 return 返回值 例: def mySum(x , y): return int(x)+int(y)print(my ...
- MySQL 外键
在MySQL中 (1)MySQL 数据表主要支持六种类型 ,分别是:BDB.HEAP.ISAM.MERGE.MYISAM.InnoBDB.这六种又分为两类,一类是”事务安全型”(transaction ...
- 深入理解闭包系列第三篇——IIFE
× 目录 [1]实现 [2]用途 前面的话 严格来讲,IIFE并不是闭包,因为它并不满足函数成为闭包的三个条件.但一般地,人们认为IIFE就是闭包,毕竟闭包有多个定义.本文将详细介绍IIFE的实现和用 ...
- Android样式之selector
日常开发当中,难免会出现这样一种情况,为一个按钮.TextView...设置一个点击状态的颜色改变,可能是background背景的改变,也可能是字体颜色的改变,简单点说:默认状态下,字体颜色或者背景 ...