App sandbox not enabled.

App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "com.xx.pkg/Payload/xx.app//Contents/Resources/ss-local", "ccom.xx.pkg/Payload/xx.app//Contents/Resources/v2ray-plugin" )] Refer to App Sandbox page at https://developer.apple.com/documentation/security/app_sandbox for more information on sandboxing your app. (ID: ca7d4fde-0f0d-4a71-9eee-a01692797549)

Answered by Security Engineer in 791006022

As the error message states, you need to configure ss-local and v2ray-plugin to be signed with the App Sandbox capability before embedding them in your App.

Accepted Answer

As the error message states, you need to configure ss-local and v2ray-plugin to be signed with the App Sandbox capability before embedding them in your App.

Also, I recommend that you not put helper tools like this into Contents/Resources. See Placing Content in a Bundle for advice on how to structure your bundle.

Oh, and if you’re building your app from Xcode, see Embedding a command-line tool in a sandboxed app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

你好,我有个其他问题,我有两个可执行的二进制文件作为代理服务使用,我制作了两个对应的plist,沙盒为开启之前plist文件存放位置是/user/hhhhhme/library/LaunchAgents,我通过shell脚本内的命令chmod 644 "$HOME/Library/LaunchAgents/xx.xx.xx.plist" launchctl load -wF "$HOME/Library/LaunchAgents/xx.xx.xx.plist" launchctl start xx.xx.xx可以完美运行,并且我通过Mac的设置,登录项,也可以查看到这两个代理,但是当我打开沙盒功能后,plist 的存储位置变成了/Users/hhhhhme/Library/Containers/com.TI.ty/Data/Library/LaunchAgents,我用的shell运行,得到一些错误:Not privileged to start service,请问我这种情况,我需要加什么对应的什么权限,或者要怎么调整我的app才能让它在开启沙盒功能的情况下,也能运行呢?希望得到您帮助谢谢!

App sandbox not enabled.
 
 
Q