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>

参考:http://stackoverflow.com/questions/39519773/nsphotolibraryusagedescription-key-must-be-present-in-info-plist-to-use-camera-r

Apple 官方列表:

https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html

[修正] iOS 10 使用相机及相簿闪退的问题修正的更多相关文章

  1. iOS 10 使用相机及相簿闪退的问题修正

    http://www.cnblogs.com/onechen/p/5935579.html

  2. iOS 10 因苹果健康导致闪退 crash-b

    如果在app中调用了苹果健康,iOS10中会出现闪退.控制台报出的原因是: Terminating app due to uncaught exception 'NSInvalidArgumentEx ...

  3. iOS 10 因苹果健康导致闪退 crash

    如果在app中调用了苹果健康,iOS10中会出现闪退.控制台报出的原因是: Terminating app due to uncaught exception 'NSInvalidArgumentEx ...

  4. iOS 10 开发 相机相关的适配

    升级 iOS 10 之后目测坑还是挺多的,记录一下吧,看看到时候会不会成为一个系列. 直入正题吧 今天在写 Swift 3 相关的一个项目小小练下手,发现调用相机,崩了.试试看调用相册,又特么崩了.然 ...

  5. iOS 10 之后,相机权限问题及易出现的Crash

    1: iOS 10 之后,访问相机需要设置相关的权限 麦克风权限:Privacy - Microphone Usage Description 是否允许此App使用你的麦克风? 相机权限: Priva ...

  6. phonegap创建的ios项目推送消息出现闪退现象

    使用phonegap创建的ios项目,推送消息时,当程序在前台运行或者在后台运行状态下,推送消息过来,可以解析并且跳转: 但是在程序从后台退出的状态下,当消息推送过来的时候,点击通知栏,打开程序,程序 ...

  7. Ubuntu18.10下运行blender2.80bate闪退(问题?)

    Ubuntu18.10下直接运行blender2.80bate闪退, 运行blender2.79正常. ================= root@tom-laptop:/# uname -aLin ...

  8. iOS 10 新特性 大汇总 及iOS 10 的一些小问题和 xcode 8 的新版本小问题

    iOS 10正式版是很值得升级的,特别是那些不打算购买iPhone 7的老用户,毕竟新系统在体验.流畅性上都做了一些升级. 1.开放电话接口 支持垃圾电话提醒 对于使用iPhone的国人来说,这个功能 ...

  9. iOS开发-闪退问题-解决之前上架的 App 在 iOS 9 会闪退问题

    最新更新:(2015.10.02) 开发环境: Delphi 10 Seattle OS X El Capitan v10.11 需使用下列 HotfixID: 30398, PAServer Hot ...

随机推荐

  1. 深入浅出Alljoyn——实例分析之远程调用(Method)篇

    深入浅出就是很深入的学习了很久,还是只学了毛皮,呵呵! 服务端完整代码: #include <qcc/platform.h> #include <assert.h> #incl ...

  2. [SDK2.2]Windows Azure Storage (15) 使用WCF服务,将本地图片上传至Azure Storage (上) 服务器端代码

    <Windows Azure Platform 系列文章目录> 这几天工作上的内容,把项目文件和源代码拿出来给大家分享下. 源代码下载:Part1 Part2 Part3 我们在写WEB服 ...

  3. Senparc.Weixin.MP SDK 微信公众平台开发教程(十八):Web代理功能

    在Senparc.Weixin.dll v4.5.7版本开始,我们提供了Web代理功能,以方便在受限制的局域网内的应用可以顺利调用接口. 有关的修改都在Senparc.Weixin/Utilities ...

  4. 通过圆形载入View了解自定义View

    这是自定义View的第一篇文章,通过制作简单的自定义View来了解自定义View的流程. 自定义View是Android学习和开发中必不可少的一部分.通过自定义View我们可以制作丰富绚丽的控件,自定 ...

  5. VS2013常用快捷键你敢不会?

    F1 帮助文档 F5 运行 F12 跳转到定义 F11 单步调试 Shift+F5 停止调试 Ctrl+滚轮 放大缩小当前视图 Ctrl+L 删除当前行 Ctrl+K,Ctrl+C 注释选中代码 Ct ...

  6. C#设计模式系列:工厂方法模式(Factory Method)

    1. 工厂方法模式简介 1.1 定义 工厂方法模式定义一个用于创建对象的接口,让子类决定实例化哪一个类.工厂方法模式是以一个类的实例化延迟到其子类. Factory Method模式用于在不指定待创建 ...

  7. SQL Server 2014新功能PPT

        本篇文章是我在公司内部分享SQL Server 2014新功能的PPT,在本PPT中我详细描述了SQL Server除了BI方面的新功能,以及提供了大量的测试.希望对大家有帮助.     请点 ...

  8. 自制编程语言crowbar(v0.1)构建解析器时分配内存

    crowbar中第一次申请内存是在生成解析器的时候: /* interface.c */CRB_Interpreter *CRB_create_interpreter(void) { MEM_Stor ...

  9. 前端学PHP之语句

    × 目录 [1]if语句 [2]switch [3]while[4]do-while[5]for语句[6]foreach[7]break[8]continue[9]goto 前面的话 任何 PHP 脚 ...

  10. DDD 领域驱动设计-在动手之前,先把你的脑袋清理干净

    惨不忍睹的翻译 英文原文:http://www.codeproject.com/Articles/339725/Domain-Driven-Design-Clear-Your-Concepts-Bef ...