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

转载于:https://www.cnblogs.com/onechen/p/5935579.html

[修正] iOS 10 使用相机及相簿闪退的问题修正相关推荐

  1. ios点击推送闪退_苹果应用闪退是什么原因?如何解决进行ios签名后的苹果应用闪退问题?...

    相信很多使用手机APP的用户都曾经遇到过闪退的问题. 闪退就是指打开APP后突然会出现一闪然后退出.或者是需要重新登录的现象. 苹果应用闪退的原因: 首先有可能是系统兼容的问题.比如你的系统已经升级了 ...

  2. IOS开发-如何debug及处理闪退

    我只写些相对来说,比较有用的信息,想完整阅读的,可以自行去原文.. 原文来自:http://www.raywenderlich.com/10209/my-app-crashed-now-what-pa ...

  3. ios应用升级到ios15后闪退

    最近苹果发布了最新的ios15系统,本来皆大欢喜,结果悲剧的是,我们产品在ios15的系统上必定闪退.还好内部第一时间发现了问题,此时升级ios15的用户较少,我们有时间去解决问题,要是等到用户发现问 ...

  4. 苹果闪退解决方法_关于10月16日csgo闪退的解决方法

    今天中午12点更新后,csgo无法进入,黑屏闪退,尝试了各种办法,首先这是v社更新的bug,文件完整性是无缺失的,steam其他游戏可以进入,不要怀疑自己电脑的问题. 解决方法可以直接重置电脑网络配置 ...

  5. iOS 10诸如相机、相册、通讯录、麦克风、定位权限设置,防止奔溃或上架被拒

    奔溃情况 Xcode 8运行iOS10,APP在第一次访问相册,相机,通讯录,定位等权限时奔溃的情况: 处理办法: 需要在info.plist中add row一下对应的key:下面列出常用的几个 Pr ...

  6. cordova vue ios调用camera拍照保存图片时闪退 iOS11之后

    在配置config.xml时需要添加保存图片的权限 <platform name="ios"><config-file parent="NSCamera ...

  7. 关于手机横屏打开相机或者相册闪退解决方案

    今天遇到一个需求就是在手机横屏的时候要打开相册相机,但是在打开的手就报错,经过一上午的查资料,看文档,知道了问题所在,原来UIImagePickerController 只支持竖屏 解决思路 1,让U ...

  8. iOS 10适配须知

    iOS10相册相机闪退bug http://www.jianshu.com/p/5085430b029f iOS 10 因苹果健康导致闪退 crash http://www.jianshu.com/p ...

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

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

最新文章

  1. php的htaccess,.htaccess
  2. GridView 实现LinkButton下载文件/附件
  3. visualvm远程监控jvm_8款JVM性能调优监控工具(提高开发效率)
  4. python持久化存储文件操作
  5. 双十一丨你负责买买买 我做你背后的那个数据人
  6. Redisson 布隆过滤器
  7. 关于职场的6个深刻道理,每个都是血泪教训换来的,你一定要懂
  8. 出于安全考虑,谷歌禁用三款 Linux web 浏览器登录其服务
  9. 堆排序建堆复杂度在特殊情况下的推导
  10. 【iOS之轮播视图、自定义UIPageControl】
  11. eclipse 闪退原因
  12. AnimMontage(中文)——UE4官方文档翻译与理解
  13. 机器人多维度高速精密切割加工 引领切割技术升级
  14. 关于Shine-hale
  15. 第二人生的源码分析(三十)UDP接收数据和Windows网络关闭
  16. linux查看wifi信号命令_详细解析:Linux系统的无线网络命令
  17. c++ Bellman-Ford 算法
  18. CSS 样式,如何计算临近颜色值?
  19. 对于硬件成品测试,可以设计哪些测试用例?
  20. Chart.js使用

热门文章

  1. 第十三届蓝桥杯省赛JavaC组真题——详细答案对照(完整版)
  2. mysql 绕过addslashes,SQL注入:Bypass addslashes()
  3. HDUOJ使用方法介绍
  4. apple watch可以使用第三方表盘了,Apple Watch 更换第三方表盘需求
  5. Liquibase实践指南
  6. tomcat8打开闪退_如何解决tomcat启动闪退的問題
  7. 遇到问题:微信发错消息,需要撤回,但超过了撤回时间,怎么办?
  8. 股票趋势线的绘制-维克托
  9. python安装盒怎么打开_Python学习笔记(六)Python盒子:模块,包和程序
  10. 污水处理中php是什么药剂,污水处理中常用的药剂有哪些?