简体   繁体   中英

Privacy Camera Description issue in info.plist

I'm making an app in which there is camera usage. I have added the key Privacy - Camera Usage Description and I have added the description also with it. "Use camera to display ARKit content."

But when I run the app it crashes my app with this 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.

I'm confused why I'm getting this error since I have added it in the Info.plist.

Try below things,

  1. Delete app from Simulator or Device
  2. Press Cmd + Shift + K to clean the project and Cmd + Alt + Shift + K to clean the build directory
  3. Remove Derived Data folder
  4. Quit and restart Xcode

FYI. Just give it a try.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM