Automatic Code Signing does not work with custom entitlements in xCode 9.X

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.

Replies

Ya, facing the same issue. Can't seem to find any information on how to get automatic code signing working with custom / extended entitlements

Hi ,

Any update on this question ? (facing the same probleme here)

Thanks a lot

I may have also had this problem. Is there any resolution?