PJR
PJR

Reputation: 13180

What is the use of entitlements.plist file?

I have some questions regarding entitlement file:

  1. What is the use of entitlements file.

  2. What happens if I don't add it.

  3. What is the difference between myApp.entitlements and entitlements.plist?

Upvotes: 33

Views: 29402

Answers (3)

Wasim
Wasim

Reputation: 1140

myApp.entitlements is Xcode generated plist when you enable capabilities (e.g push notification) for that particular target.

Upvotes: 1

Akhzar Nazir
Akhzar Nazir

Reputation: 830

Entitlements are announcements that “I am gonna use this feature like APPLE PAY” and provision profile will say, “Yes dear you can use Apple Pay Feature”.

Entitlements are part of the code-signed app.

Upvotes: 6

bluebamboo
bluebamboo

Reputation: 1292

  1. The entitlements file defines certain capabilities of your app. Usually, the file is automatically generated by Xcode when you enable a capability for your app.
  2. You only need the file if you enable certain capabilities, e.g. Healthkit integration. If you'd like to use these features, you have to add it. Otherwise, Apple will reject your app.
  3. You can name the file like you want. You can also rename it as long as the build settings point to the correct file name for it.

Upvotes: 32

Related Questions