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.