升级Xcode8访问相机 麦克风注意事项
2016-09-30 10:06
260 查看
升级到Xcode8可真坑啊, 访问相机的时候竟然崩溃了
解决办法如下:
在info.plist中加
<key>NSPhotoLibraryUsageDescription</key>
<string>App需要您的同意,才能访问相册</string>
<key>NSCameraUsageDescription</key>
<string>App需要您的同意,才能访问相机</string>
<key>NSMicrophoneUsageDescription</key>
<string>App需要您的同意,才能访问麦克风</string>
<key>NSLocationUsageDescription</key>
<string>App需要您的同意,才能访问位置</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App需要您的同意,才能在使用期间访问位置</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>App需要您的同意,才能始终访问位置</string>
<key>NSCalendarsUsageDescription</key>
<string>App需要您的同意,才能访问日历</string>
<key>NSRemindersUsageDescription</key>
<string>App需要您的同意,才能访问提醒事项</string>
<key>NSMotionUsageDescription</key>
<string>App需要您的同意,才能访问运动与健身</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App需要您的同意,才能访问蓝牙</string>
<key>NSAppleMusicUsageDescription</key>
<string>App需要您的同意,才能访问媒体资料库</string>
解决办法如下:
在info.plist中加
<key>NSPhotoLibraryUsageDescription</key>
<string>App需要您的同意,才能访问相册</string>
<key>NSCameraUsageDescription</key>
<string>App需要您的同意,才能访问相机</string>
<key>NSMicrophoneUsageDescription</key>
<string>App需要您的同意,才能访问麦克风</string>
<key>NSLocationUsageDescription</key>
<string>App需要您的同意,才能访问位置</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>App需要您的同意,才能在使用期间访问位置</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>App需要您的同意,才能始终访问位置</string>
<key>NSCalendarsUsageDescription</key>
<string>App需要您的同意,才能访问日历</string>
<key>NSRemindersUsageDescription</key>
<string>App需要您的同意,才能访问提醒事项</string>
<key>NSMotionUsageDescription</key>
<string>App需要您的同意,才能访问运动与健身</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>App需要您的同意,才能访问蓝牙</string>
<key>NSAppleMusicUsageDescription</key>
<string>App需要您的同意,才能访问媒体资料库</string>
相关文章推荐
- oracle跨数据库跨用户访问注意事项
- Android 中相机的一些注意事项
- webapi使用System.Web.Http.Cors配置跨域访问的几点注意事项
- .net 2.0 访问Oracle --与Sql Server的差异,注意事项,常见异常
- 使用Smarty的相关注意事项及访问变量的几种方式
- Android相机开发中遇到的坑(注意事项)
- Windows下的Eclipse访问虚拟机的Hadoop的一些注意事项
- Linux下Redis配置远程访问注意事项
- [Azure] Azure 中国服务使用注意事项及兼容版存储访问工具
- 主机访问 虚拟机web注意事项
- C# 访问Access使用参数时注意事项
- .net 2.0 访问Oracle --与Sql Server的差异,注意事项,常见异常
- .net 2.0 访问Oracle --与Sql Server的差异,注意事项,常见异常
- Java之访问权限控制符以及结合继承体系引发的注意事项
- .net 2.0 访问Oracle --与Sql Server的差异,注意事项,常见异常
- net 2.0 访问Oracle --与Sql Server的差异,注意事项,常见异常
- myeclipse、eclipse中项目复制后(可能无法访问)注意事项 .
- 访问action的注意事项
- php使用Smarty的相关注意事项及访问变量的几种方式