Automatic Code Signing does not work with custom entitlements

Originator:eli.j.perkins
Number:rdar://28494695 Date Originated:27-Sep-2016 10:09 AM
Status:Open (Duplicate of 27253063) Resolved:
Product:Developer Tools Product Version:Xcode 8.0 (8A218a)
Classification: Reproducible:Yes
 
Summary:
Given an app which uses custom entitlements for provisioning profiles, as granted by Apple, Xcode is unable to configure automatic code signing for that app.

It seems as though Xcode has no idea about the concept of custom entitlements granted to a specific provisioning profile, such as `com.apple.developer.payment-pass-provisioning`.

Steps to Reproduce:
1. Create an bundle ID on the dev portal and an app on iTunes Connect.
2. Create a provisioning profile on the dev portal.
3. Give that bundle ID/app privileges for the `com.apple.developer.payment-pass-provisioning` entitlement.
4. Enable that entitlement for the provisioning profile.
5. Configure the entitlements for your app in Xcode to contain the `com.apple.developer.payment-pass-provisioning` entitlement.
6. Configure automatic code signing in Xcode.
7. Build and run.

Expected Results:
Xcode creates and downloads a provisioning profile using the `com.apple.developer.payment-pass-provisioning` entitlement. 
The build succeeds as the provisioning profile's entitlements match the entitlements included in the application.

Actual Results:
Xcode creates and downloads a provisioning profile which does not contain the `com.apple.developer.payment-pass-provisioning` entitlement.
The build fails as the provisioning profile's entitlements do not match the entitlements included in the application.

Version:
Version 8.0 (8A218a)

Notes:
Alternatively, moving `com.apple.developer.payment-pass-provisioning` to a proper entitlement for a bundle identifier, instead of a provisioning profile, could lead to a more unified developer experience, allowing one place to configure all entitlements.

Comments

Apple Developer Relations

Engineering has determined that your bug report is a duplicate of another issue and will be closed.

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.

DUPLICATE OF 27253063

By eli.j.perkins at June 21, 2017, 9:02 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!