Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Where is the Entitlements.plist file?

I'm trying to submit my first app but it apple keeps giving me an email about Missing Push Notification Entitlement (asked a question here: iOS: Missing Push Notification Entitlement)

This guy here: https://stackoverflow.com/a/16681454/1555312 seems to have an answer, which is to remove the Entitlements.plist file. However, I don't know where this file is. Could you let me know how to 1) locate the file 2) delete it 3) regenerate it?

like image 367
bigpotato Avatar asked Sep 13 '15 00:09

bigpotato


People also ask

Where are entitlements Xcode?

You can add entitlement from Project Target. Note in Xcode 11.3 (and some earlier versions) the tab is "Signing & Capabilities" and capabilities are added using "+ Capability" at the top left corner of the tab subwindow instead of via the on/off switches.

How do I create an entitlement plist in Xcode?

Select iOS > Resource > Property List. Name the new file " foo. entitlements " (typically, " foo " is the target name) Click the (+) next to "Entitlements File" to add a top-level item (the property list editor will use the correct schema due to the file extension)

What is an entitlement file?

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. 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.

How do I add entitlements to my provisioning profile?

To use this special entitlement you must create a new provisioning profile in the Certificates, Identifiers & Profiles section of your developer account and select the entitlement after the “Do you need additional entitlements?” page.

What is an entitlements file in Xcode?

Xcode records capabilities that you add in a property list file with the .entitlements extension. You can also edit the entitlements file directly. When code signing your app, Xcode combines the entitlements file, information from your developer account, and other project information to apply a final set of entitlements to your app.

What is a plist file in iOS?

The file is used by macOS, iOS, and iPadOS applications to store settings and other data in a key-value format with an XML structure. For example, every iPhone app includes at least one PLIST file called Info.plist that contains basic configuration information for the app.

How do I configure entitlements for my App?

An app stores its entitlements as key-value pairs embedded in the code signature of its binary executable. You configure entitlements for your app by declaring capabilities for a target in Xcode. Xcode records capabilities that you add in a property list file with the .entitlements extension. You can also edit the entitlements file directly.

How do I use app services in Xcode?

To use some app services, you must provision your app, adding a capability with Xcode’s project editor that configures the app service correctly for you. Xcode edits the Entitlements and Information Property List files, adds related frameworks, and configures your signing assets.


2 Answers

You can add entitlement from Project Target.

http://imgur.com/BPwPGc8

you project Target -> Capabilities ->Background Mode-> ON-> select checkbox for Remote notifications

like image 98
Jamil Avatar answered Nov 01 '22 17:11

Jamil


When we are using push notifications related code in our app and if that capability is not configured in Xcode or in App ID that mail comes from apple. If you are not going to use Push notifications in your app, then you can ignore that mail. But if you are using it, enable that capability in Xcode-> Target--> Capabilities --> Push Notifications

or

Go to developer portal and check enable push notifications capability for your App ID and enable it if it's disabled.

like image 30
Sivajee Battina Avatar answered Nov 01 '22 15:11

Sivajee Battina