IOS端写demo打bug记
BUG甲
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.
解决方案:
滑动到最后一个 item 会出现一个小加号,输入 Privacy 可以迅速定位到这一权限系列,找到你需要的权限,修改后面的 value 就可以了
当然也可以用如下方法添加:
1.在项目中找到info.plist文件,右键点击以 Source Code形式打开
2.添加以下键值对,这里以 PhotoLibrary 作为例子
NSPhotoLibraryUsageDescription
此 App 需要您的同意才能读取媒体资料库
BUG乙
Xcode setting ENABLE_BITCODE的问题