在最近開始一個新項(xiàng)目的時候凸克,發(fā)現(xiàn)了幾個很奇怪的問題
- 說不支持 HTTP 啊
- 說缺不支持相機(jī)權(quán)限啊
類型下面經(jīng)典的錯誤:
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
后面幾經(jīng)周折發(fā)現(xiàn),原來是這個 Info 和 工程中 Info 沒同步
工程中的 Info
在上述添加后即可司蔬,這個問題折騰了半天臭脓,有點(diǎn)莫名其妙的,
需要注意下我們目前 Xcode 13 創(chuàng)建的工程以此 Info 生效的。