iOS Developer

Xcode8以上 info.plist 系统权限问题

2017-05-27  本文已影响0人  不羁放纵dy
更新Xcode8以后(iOS10),App使用相机,相册,麦克风,定位等等之类的系统权限时,需要在info.plist中增加相关配置,不然在编译的时候,会闪退...
PS:分享一下笔者在开发中遇到的错误:
This app has crashed because it attempted to access privacy-sensitive data without a usage description.
The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to
the user how the app uses this data.

相机权限
<key>NSCameraUsageDescription<key>
<string>cameraDesciption<string>
相册权限
<key>NSPhotoLibraryUsageDescription<key>
<string>photoLibraryDesciption<string>

如果问题或错误,欢迎大家留言
上一篇 下一篇

猜你喜欢

热点阅读