简体   繁体   English

Asus Xtion的Mac Sandbox权利:无法打开文件

[英]Mac Sandbox entitlement for Asus Xtion : Failed to open the file

I am developing a Mac application that uses an Asus Xtion Pro Live camera. 我正在开发使用Asus Xtion Pro Live相机的Mac应用程序。 I activate Sandboxing and set the com.apple.security.device.usb entitlement to YES. 我激活沙箱并将com.apple.security.device.usb的权利设置为YES。

After doing so, the app is not able to detect the camera anymore. 这样做之后,该应用程序将无法再检测到相机。

Could not open "1d27/0601@253/5": Failed to open the file!

Does anyone know how to set an entitlement to enable detection of the Asus Xtion Pro Live? 有谁知道如何设置授权以启用对Asus Xtion Pro Live的检测?

Thanks! 谢谢!

The above problem was solved adding an entitlement: 解决了上述问题,添加了权利:

com.apple.security.temporary-exception.files.absolute-path.read-write 

for the file (found using the mac console): 文件(使用mac控制台找到):

/private/tmp/XnCore.Mutex.HostProtocolMutex1d27_0601@250_6.key

The problem now is that Mac Sandboxing does not allow IPC System V Semaphores. 现在的问题是Mac Sandboxing不允许IPC System V信号量。

27/06/14 12:17:50,000 kernel[0]: Sandbox: MyApp(69513) deny ipc-sysv-sem

Does anyone know how to use IPC System V Semaphores in Mac Sandboxed apps? 有谁知道如何在Mac Sandboxed应用程序中使用IPC System V信号量?

Thanks! 谢谢!

what about com.apple.security.device.camera ? com.apple.security.device.camera呢? All available entitlement in the reference . 参考中所有可用的权利

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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