How to enable Sandboxing for a specific build configuration

I am developing a Mac application and preparing it in the Mac AppStore.

I also want to distribute it on my site at the same time.

Since I use the Sparkle framework to manage updates for versions outside the AppStore, the application may NOT be isolated.

I know that I can do this with several assembly goals, but the strong two goals in synchronization are too heavy, since the only difference is the sandbox or not.

So, I am creating an assembly configuration, and the list of my configurations is as follows:

  • Debugging : for development, Sandbox Disabled
  • Release : for distribution outside the Mac AppStore, Sandbox is disabled
  • MacAppStore : for distribution on the Mac AppStore, Sandbox Enabled

How to enable Sandbox for MacAppStore configuration only ?

+4
source share
1 answer

Provide custom rights files for each build configuration. a sandbox is just an AFAIK feature.

rights file is a build parameter, and build settings may vary depending on configuration

see screenshots for explanation

  • shows where to manage configurations.
  • shows how I cleared the build setting for Release but left it for the Appstore

enter image description hereenter image description here

+5
source

All Articles