My VideoGrabber example source is not works

Hi, Everyone.

My VideoGrabber example source is not works.

I met this error at runtime.

What’s wrong with me?

2018-10-16 17:17:36.230189+0900 videoGrabberExampleDebug[11775:317310] [default] Unable to load Info.plist exceptions (eGPUOverrides)

2018-10-16 17:17:36.452034+0900 videoGrabberExampleDebug[11775:317382] MessageTracer: Falling back to default whitelist

[notice ] Device: 0: USB2.0 PC CAMERA

[notice ] Device: 1: FaceTime HD 카메라(내장형)

[notice ] 0: USB2.0 PC CAMERA

[notice ] 1: FaceTime HD 카메라(내장형)

2018-10-16 17:17:37.021251+0900 videoGrabberExampleDebug[11775:317310] [] CMIO_Unit_ScopeElement.h:200:SafeGetElement Throwing err: -67454

2018-10-16 17:17:37.023331+0900 videoGrabberExampleDebug[11775:317310] [] CMIOUnitFigBaseObjectImpl.c:246:CMIOUnitCreateFromDescription Invalid paramater

2018-10-16 17:17:37.048151+0900 videoGrabberExampleDebug[11775:317310] [] CMIO_Unit_Input_Device.cpp:244:GetPropertyInfo CMIOUInputFromProcs::GetPropertyInfo() failed for id 102, Error: -67456

2018-10-16 17:17:37.123668+0900 videoGrabberExampleDebug[11775:317382] [access] 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.

(lldb)

I think it explains why at the end:

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 not sure how because I own no Apple device, but I think you can easily find the answer:
https://duckduckgo.com/?q=webcam+info.plist

Any time you want to use different features like the camera, the microphone, gps, etc, you need to tell why you need that feature, otherwise you are not allowed to use it. That’s both in iOS and Android (done in different ways).

Update: or is it possible that this used to work, but broke with the most recent XCode & Mac OS?

1 Like

한국인이시군요.

해당 문제는 이번 업데이트된 NSCameraUsageDescription 에대한 내용을 Openframeworks 에서 재공하는 Info.plist 에 명시해주지 않아 생기는 오류입니다.

위 문제에대한 해결책을 제 개인블로그에 올려놓았습니다.
참고 부탁드립니다.
https://blog.naver.com/dnflrkwhr888/221398758173