Contents

Adding the Virtualization Entitlement to Your Project

Configure your project to use the Virtualization framework.

Overview

To use the Virtualization APIs, a process must have the com.apple.security.virtualization entitlement.

Do the following to add this entitlement to your app:

  1. In your project’s “Signing & Capabilities” panel, turn on the App Sandbox. This creates a new entitlement file in your project with the same name as the app target.

  2. Select the entitlements file.

  3. Click the Add button (+) to add a new property to the entitlements file.

  4. Select “Virtualization” from the new property’s type popup menu.

  5. Set its value to YES.

  6. Unless your app requires it in support of another capability, you can remove the app sandbox entitlement key that Xcode creates by default by selecting it and clicking the Remove button (-).

The entitlements file resembles the example settings shown below:

[Image]

See Also

Essentials