Xcode 13 Info.plist 不生效
2021-11-28 本文已影响0人
天空中的球
在最近开始一个新项目的时候,发现了几个很奇怪的问题
- 说不支持 HTTP 啊
- 说缺不支持相机权限啊
类型下面经典的错误:
NSURLConnection finished with error - code -1002
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.
但是很奇怪的是我 InfoPlist 都是有的啊

后面几经周折发现,原来是这个 Info 和 工程中 Info 没同步

在上述添加后即可,这个问题折腾了半天,有点莫名其妙的,
需要注意下我们目前 Xcode 13 创建的工程以此 Info 生效的。