[修正] iOS 10 使用相机及相簿闪退的问题修正
2018-06-17 18:57:50来源:未知 阅读 ()
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
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Delphi10.3下自带系统托盘 TrayIcon的使用 2020-06-01
- delphi10.3安装使用mySQL 2020-05-31
- QF中间件 2020-02-04
- 人脸识别Demo 2019-08-29
- delphi使用Chilkat 组件和库从SFTP下载文件 2019-08-26
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash