升级 iOS 10 之后坑还是挺多的,增加了很多的权限设置,如果不设置,程序则直接crash。
相机
[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
麦克风
[access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
地理位置
解决办法
在Info.plist中添加对应的权限即可