Hi, I have an App that contains a simple launcher script. It starts an embedded Java Application together with an embedded JRE. Like this:
Contents/PlugIns/jre/Contents/Home/bin/java -jar Contents/Resources/Java/myapp-0.6.4-SNAPSHOT.jar
This works fine, until I codesing the App using an entitlements file that enables sandboxing. Like this:
<key>com.apple.security.app-sandbox</key>
<true/>
After sandboxing has been enabled like this, I get the following error when I try to start the app:
Contents/MacOS/launcher: /Users/alex/Library/Containers/com.myapp/Data/MyApp.app/Contents/MacOS/launcher: No such file or directory
Apparently, this folder exists /Users/alex/Library/Containers/com.myapp/Data
, but does not contain a MyApp.app
folder.
How can I configure my launcher properly to work with sandboxing?