iOS 10.0 運行時崩潰中的 NSCameraUsageDescription? - NSCameraUsageDescription in iOS 10.0 runtime crash?

問題:

Using iOS 10.0 last beta.使用iOS 10.0最後一個測試版。 I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error.我曾嘗試使用相機掃描我的應用程序中的條形碼,但它因此運行時錯誤而崩潰。

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.應用程序的 Info.plist 必須包含一個 NSCameraUsageDescription 鍵和一個字符串值,向用戶解釋應用程序如何使用這些數據。

Put this key into the plist, but it still crashed?把這個key放進plist,還是崩潰?


解決方案:

參考一: https://en.stackoom.com/question/2fapL
參考二: https://stackoom.com/question/2fapL
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章