Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I test app sandboxing without a Mac Developer Program account

I can develop for iOS using the Simulator without an iOS Developer Program account (I just can't run on a device.) Is there an equivalent way of working for Mac Developer Program stuff? I want to test some of my utility apps for sandboxing compatibility (and therefore App Store distribution) prior to signing up for a paid account. If my apps don't work or aren't at least easily fixable, it's not worth the $99.

Are there project settings I can enable which enforce sandboxing? I expect that code signing will not work.

like image 877
Tim Avatar asked Jan 07 '13 18:01

Tim


People also ask

Does Mac Have a Sandbox mode?

The App Sandbox is an access control technology that macOS provides and enforces at the kernel level. The sandbox's primary function is to contain damage to the system and the user's data if the user executes a compromised app.


2 Answers

Take a look at the App Sandbox Design Guide, which has sections about creating code signing certificates for testing your apps. You can do it entirely in Keychain Access without requiring a paid Apple ID.

like image 52
Tim Avatar answered Oct 14 '22 22:10

Tim


You can create a self-signed certificate for code signing:

  1. Open Keychain Access.
  2. Choose Keychain Access > Certificate Assistant > Create Certificate ...
  3. Enter a name
  4. Set 'Certificate Type' to 'Code Signing'

Then, in Xcode > Target > Build Settings > Code Signing, you should see your new certificate show up in the drop down next to Code Signing Identity.

like image 30
ryantuck Avatar answered Oct 14 '22 23:10

ryantuck