Eclipse RCP on OS X 26.6 does not allow camera access (e.g. opencv development) #4285
col-panic
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I want to share a fact we found out:
Starting with OS X 26.6 it is not possible to access the camera device when developing within Eclipse. This is due to the OS X Gatekeeper which requires specific access rights for Apps.
There are two files involved
Eclipse.appandEclipse.app/Contents/Info.plistWe have both the Entitlements the App is granted, which can be listed with
codesign -d --entitlements - Eclipse.appand the keys in
Info.plistwhich can be listed withplutil -p Eclipse.app/Contents/Info.plistIn order to have access to the camera device when developing a respective app, we miss the entitlement
<key>com.apple.security.device.camera</key><true/>and the
Info.plistentryNSCameraUsageDescriptionIt is possible to patch an existing Eclipse installation to manually add these rights using
usr/libexec/PlistBuddy -c "Add :NSCameraUsageDescription string For Development purposes" Contents/Info.plistandcodesign --force --deep --options runtime --entitlements entitlements.plist --sign - Eclipse.app/the resulting Eclipse.app now bound to the local installation and not usable on another system.
Maybe the respective right should become a part of the default Eclipse installation?
All reactions