I found that I could use posix_spawn() to run a second process from main. Now even with the sandBox enabled the process runs correctly without being killed. I had one last obstacle left to overcome, publishing on the mac store requires that the child process is also signed with the sandbox and I tried using these two keys "com.apple.security.app-sandbox" and "com.apple. security.inherit". The problem is that when I test it, after signing it, by opening it with a double click I get the error "zsh: trace trap /Users/myUser/Desktop/applicationName". What am I doing wrong?
Post
Replies
Boosts
Views
Activity
It is an application that uses socket.io (TCP/IP) and exposes a socket channel using the network interface address you are connected to the router with, for example: 192.168.1.55:300.
Here is a screenshot of the current situation. As I mentioned, I created a "Group" named "Server," and under that group, I added the references to the executable (and a library used within it). The file that is not being executed is "partyGameSocketServer."
I created an xCode project through a build in Unity. For it to work, it needs to execute an external "Unix Executable" outside of the project, which acts as a "Server." Through this executable, which exposes a socket channel, the Unity application and a mobile application communicate with each other. So, I created a "group" in xCode called "Server," which creates a "Server" folder inside the "Contents" folder of the .app file. The xCode build correctly places the files, and everything works fine until I enable the Sandbox. Once enabled, the "Unix Executable" necessary for communication is no longer executed. It seems that the Sandbox does not provide the necessary permissions to access that executable file.