
Add a capability to a target
You can add special capabilities to a target to enable services provided by Apple such as Apple Push Notification service, CloudKit, Game Center, and In-App Purchase.
If you use automatic signing (recommended), Xcode configures your project and signing assets to enable the capability. Xcode also edits the entitlements and information property list, and adds technology-specific frameworks to your project. However, some app services—such as Game Center and In-App Purchase—may require additional setup in your developer account and App Store Connect.
Before you begin, add your Apple ID account and assign the target to a team. For some apps, launch an app on a device to register a device.
In the Project navigator, select the project and in the project editor, select the target.
Choose the target from the Project/Targets pop-up menu or in the Targets section of the outline view if it appears.
In the project editor, click Signing & Capabilities.
Click All or select a specific build configuration.
For example, select Debug if you want to test a capability without adding it to a release build.
Click the Library button (+) to open the Capabilities library (or choose Editor > Add Capability).
The Capability library shows only the capabilities available to the target type and your program membership. If you are not a member of the Apple Developer Program, the capabilities you can add are limited.
The screenshot below shows the Capability library for an iOS app.
In the Capability library, you can:
Filter the capabilities shown in the library: Enter text in the filter bar at the top of the library.
Switch between list and grid view: Click the list or icon button in the toolbar.
Show or hide the details view: Click the Show Details or Hide Details button in the upper-right corner of the toolbar.
Alternatively, Option-click the Library button (+) to open the library in a persistent window.
In the library, double-click the capability you want to add, or drag it to the Signing & Capabilities pane.
The capability is removed from the Capabilities library and added to the Signing & Capabilities pane under Signing. If a disclosure triangle appears next to the capability, it reveals additional controls you use to complete the configuration.
To remove a capability, click the Delete (X) button in the upper-right corner of the capability in the Signing & Capabilities pane.
For the platform and program-specific capabilities, go to: