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.
How can I test app sandboxing without a Mac Developer Program account
-
13-01-2022 - |
Question
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.
Solution
OTHER TIPS
You can create a self-signed certificate for code signing:
- Open Keychain Access.
- Choose Keychain Access > Certificate Assistant > Create Certificate ...
- Enter a name
- 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.