I try to write command line tool for recording from a camera using AVfoundation framework.
The problem that stuck my project is camera permission issue. Error message: "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 added Info.plist with NSCameraUsageDescription key and add request authorization for capture function but it seems that it ignored on runtime. I get the same error message when macOS should shows an alert asking the user to grant app access to the camera (AVCaptureDevice.requestAccess). I familiar with Info.plist and with NSCameraUsageDescription key from ios app that I wrote but it seem that it diffrent in command line tool.
If anyone know how I can solve this privacy issue it will be very helpful.
Thanks.