Add Special Apple Capabilities to a Target
Add entitlements and frameworks for various Apple technologies, such as iCloud, Game Center, In-App Purchase, and Maps, to a target.
Select the name of the project in the project navigator.
The project editor appears in the editor area of the Xcode workspace window.
In the project editor, select a target.
Click Capabilities at the top of the project editor.
Click a switch to On to add a capability.
If a Fix Issue button appears, click it to resolve the problem.
When you add these capabilities to your app, Xcode automatically configures your project to use them. Xcode edits the entitlements and information property list files for you, and adds technology-specific frameworks as needed. For entitlements to take effect, Xcode creates code signing and provisioning assets for your team, and sets your code signing build settings for you. Some technologies—such as Game Center and In-App Purchase—may require additional setup in Member Center and iTunes Connect.
All Apple technologies that require special entitlements are listed in the Capabilities pane of the project editor.