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. java generatorconfig_generatorConfig.xml配置信息详细
  2. 七天学习计划_c#_[1]泛型类(还有六天,明天继续写!)
  3. 如何配置php的ip地址吗,如何手动配置IP地址及防火墙设置
  4. easyUI tabs 显示与隐藏 tab 页
  5. unix查询内存使用率_Elasticsearch高级调优方法论之——根治慢查询
  6. C#的多线程机制探索6
  7. 苹果“重心”转移,终端退位?
  8. 解决DatePicker中Appbar icon缺失
  9. hibernate使用sql语句查询实体时,要写上addEntity
  10. Windows Azure Cloud Service (42) 使用Azure In-Role Cache缓存(1)Co-located Role
  11. 软考之项目网络图(活动图)
  12. amd插帧技术如何开启_玩家真谛:通过AMD的 专属福利“插帧/补帧”技术了解播放器原理...
  13. 让样本不一样重要-A Dual Weighting Label Assignment Scheme for Object Detection
  14. window无法访问此文件夹,请确保输入的文件名是正确的,并且您有权访问此文件夹
  15. cocos2dx腾讯实时语音sdk接入
  16. 【Pytorch】计算矩阵中向量之间的两两相似性
  17. 理解深度神经网络——DNN(Deep Neural Networks)
  18. 蒙特卡洛方法的收敛性和误差
  19. LINUX系统文件指令操作
  20. 一级计算机ms上网,2014计算机一级MSOFFICE上网 1

热门文章

  1. 2019年中AI趋势盘点
  2. java startswith_Java startsWith() 方法 - Java 基础教程
  3. 惰性求值 php,惰性求值——lodash源码解读
  4. 灵魂拷问 TCP ,你要投降了吗?
  5. win10找不到组策略,解决方法
  6. clover没有linux引导文件夹,clover引导安装时看不到硬盘
  7. 弘辽科技:淘宝联盟该如何推广
  8. 1836:Alignment
  9. Win11网络映射怎么设置?Win11添加映射网络驱动器的方法
  10. 深入浅出pytorch(三)