Delete sandbox

I have another question related to the application sandbox. Therefore, I need access to the users home directory, and at the same time, the application should be able to close the Mac. To do this, do not use the sandbox.

My problem is that I don’t know how to remove the sandbox and send the application to the Mac App Store. I think the archives are sand isolated because I turned it on once ..

How to remove a sandbox from archives?

Thanks for your help!

+6
source share
4 answers

If I understand correctly, what you're asking, you need to delete the file entitlements.plist of your project and make sure that in the presentation summary of your target in Xcode disabled sandbox:

No sandboxing or entitlements

+5
source

As Derek Wade pointed out, you can make an application like GarageBand X (which is awkward with third-party plugins like Amplitube due to the sandbox) DOES NOT run in the sandbox by editing the binary itself using a HEX editor such as HexFiend. Search for:

<key>com.apple.security.app-sandbox</key> 

Right after this bit you will see the true tag, which, as I suggested, switched to "fals" (without extra bytes), and now GarageBand will happily interact with third-party VST plugins. Exclamations of glee.

+5
source

I found if you go into the .app package, there should be a binary file in the Contents / MacOS section that matches the name of your application. Copy this file to your desktop. Edit the copy of the file on the desktop using TextEdit. You should find in the file a textual representation (xml) of Permissions for the application. Find the sandbox right flag (usually set to <true / ">) and change it to <false /">. When editing, you will have to unlock the file. Save the file (located on the desktop). Rename the source file to the .app package (i.e. add .old to the file name). Copy the desktop file back to the location of the .app package (you may need to authorize it). This should remove the sandbox.

+2
source

You cannot delete the Sandbox if the user executed your application through the Sandbox.
The thing is what you think?

0
source

Source: https://habr.com/ru/post/894768/


All Articles