Sandboxing Your Mac OS X Application

From Appmethod Topics
Jump to: navigation, search

Go Up to Mac OS X Application Development

Sandboxing restricts an application's access to system resources and is one way that Apple ensures that apps are safe and do not contain any malware. You must sandbox your Mac OS X applications if you want to submit them to the Mac App Store.

This topic describes how to sandbox your Mac OS X applications using the Appmethod IDE. If you cannot use the IDE for the sandboxing process, you can alternatively sandbox your application manually.


Before you sandbox your Mac OS X application, you must:

Generating a Sandboxed Application Package

Project prepared for generating a sandboxed package.

To generate a sandboxed application package file of your Mac OS X application:

  1. Run the Platform Assistant on the Mac.
  2. Build your project on Appmethod.
  3. On the Project Manager:
    1. Expand the Build Configurations node and double-click the Release configuration, or any other platform-agnostic configuration that you want to use to build your sandboxed application package.
    2. Expand the Target Platforms node and double-click the OS X target platform to select that platform. The selected target platform is displayed using a bold font.
    3. Expand the OS X node, expand the Configuration node within, and double-click the Application Store platform configuration node to select that platform configuration. The selected platform configuration is displayed using a bold font.
  4. Select Project > Deployment and click the Deploy DMgrDeploy.png button to deploy your application.

Appmethod builds your application using the SDK you previously added to the IDE, connects to your Mac using the connection profile you configured for the OS X platform, and the Platform Assistant running on the Mac generates a sandboxed application package file of your application.

Your application, generated on the Mac, is then copied over to your development system. You can find your final application file (.pkg) in your project's folder. For example: C:\Users\<user>\Documents\Embarcadero\Studio\Projects\ProjectFolder\OSX\Release\ProjectName.pkg. You can submit this package to the Mac App Store.

See Also