SandBox and Client Server macOS application.

The AppStore requires that the com.apple.security.app-sandbox entitlement is set to true.

My app has two binaries, a client and a server. The Client starts the server in a selected workspace/directory and makes a TCP connection with the started server. This concept works perfectly without SandBox but a TCP connection is not possible within a SandBox.

The entitlement file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.app-sandbox</key>
	<true/>
	<key>com.apple.security.device.usb</key>
	<true/>
	<key>com.apple.security.files.downloads.read-write</key>
	<true/>
	<key>com.apple.security.files.user-selected.read-write</key>
	<true/>
	<key>com.apple.security.network.client</key>
	<true/>
	<key>com.apple.security.network.server</key>
	<true/>
</dict>
</plist>

Any hints/help is very appreciated.

Kind regards, Rob

SandBox and Client Server macOS application.
 
 
Q