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?
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.
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)
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.
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.
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.
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.
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.
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.
You can add entitlement from Project Target.
you project Target -> Capabilities ->Background Mode-> ON-> select checkbox for Remote notifications
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With