Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS App Entitlement 'com.apple.developer.payment-pass-provisioning' does not get incorporated in build in Xcode 9

Tags:

xcode

ios

wallet

I am developing an App that allows a user to provision a payment pass in the Wallet via the App. In order to do this you must request Apple to add the following entitlement

com.apple.developer.payment-pass-provisioning 

to your development team such that you can create provisioning profiles with this entitlement.

In XCode 8.2 this was working correctly. Uploading an archive to the app store with this entitlement in the provisioning profile would have the entitlement included in the App. You could verify that the entitlement was there in the summary window before hitting the upload button for the final time.

However, in XCode 9, 9.1 and 9.2 the entitlement does not appear in the summary, and the entitlement is not present in the uploaded App. Has anyone else experienced this problem and has a solution, or is this just an XCode 9 bug.

like image 501
Bergasms Avatar asked Dec 06 '17 04:12

Bergasms


1 Answers

For anyone running into this. In XCode 8 the entitlement is added 'magically' to the entitlement file. In 9 you have to set it yourself in the entitlement file dictionary as a boolean.

So for example, in your .entitlements add in the following to the Entitlements File Dictionary.

Key: com.apple.developer.payment-pass-provisioning   
Type: Boolean
Value: Yes 

Or in xml view

<key>com.apple.developer.payment-pass-provisioning</key>
<true/>
like image 125
Bergasms Avatar answered Sep 23 '22 00:09

Bergasms