I have a Leap Motion Mac app which uses the libLeap.dylib library. When run within Xcode, my project works perfectly, but when I export my app it runs (in the console I see all is working) except I don't get any values from my Leap Motion.

I think maybe the library is not linked or something like that. I'm just quite new to Mac app development. Any ideas?

有帮助吗?

解决方案

One common cause of this is sandboxing. If your Mac application is sandboxed on export, you need to make sure that "Allow Outgoing Connections" is enabled under the Network section of your sandboxing permissions.

The Leap client communicates with your Mac application via a network connection, so you have to make sure that your sandboxed application allows this connection. Otherwise, your application will quietly fail to connect to the Leap controller.

其他提示

Have you added a copy files build phase for libLeap.dylib?

While coding my app I was able to run in debug mode, but after archiving it crashed on launch due to missing the dylib...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top