Automatic Code Signing Error

I am trying to update an old UIKit/CoreData app and am (among other changes) adding CloudKit synchronization support. I enabled CloudKit (ie, set up a new CloudKit domain, enabled CloudKit, Background Mode Remote Notifications, and Push Notifications.

When I did this, automatic code signing failed. (see attached for the messages). I tried creating and downloading a new provisioning profile, but that did not help.

FB19742743

Can someone help me? I have absolutely no idea of what to do next to get this app signed (and hopefully back into the AppStore soon).

Answered by DTS Engineer in 855410022

The configuration in your Xcode project, as shown in your feedback report, looks good to me, and so it is most likely that Xcode is unable to synchronize the configuration with Apple's developer portal to generate the right provisioning profile for you.

Several things to check:

  1. Check if the configuration of the Xcode's Apple Accounts (Xcode > Settings > Apple Accounts) looks good.

  2. Follow the steps described in Setting Up Core Data with CloudKit to create a new project, and check if the issue is still there. This helps confirm that your developer account works. You can try with a brand new App ID and iCloud container, and then the App ID and iCloud container of your real app.

  3. Log in Apple's developer portal with the same account, and check if there is any warning or error message. Specifically, check if you have any agreement waiting for your action.

  4. Follow the steps described here to check if the your iCloud container is created and associated to your App ID. The association should been there, if Xcode automatic provisioning works well.

I'm super curious about your findering.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Accepted Answer

The configuration in your Xcode project, as shown in your feedback report, looks good to me, and so it is most likely that Xcode is unable to synchronize the configuration with Apple's developer portal to generate the right provisioning profile for you.

Several things to check:

  1. Check if the configuration of the Xcode's Apple Accounts (Xcode > Settings > Apple Accounts) looks good.

  2. Follow the steps described in Setting Up Core Data with CloudKit to create a new project, and check if the issue is still there. This helps confirm that your developer account works. You can try with a brand new App ID and iCloud container, and then the App ID and iCloud container of your real app.

  3. Log in Apple's developer portal with the same account, and check if there is any warning or error message. Specifically, check if you have any agreement waiting for your action.

  4. Follow the steps described here to check if the your iCloud container is created and associated to your App ID. The association should been there, if Xcode automatic provisioning works well.

I'm super curious about your findering.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Thank you for your help. I think this fixed it. Following your directions,

  1. Checked Xcode's Apple Accouts - Looked ok

  2. Set up a new project with a new AppID and CloudKit container. Worked. While in that new project, changed AppID and CloudKit container back to the problem values. FAILED.

  3. Logged in to Developer portal. No warnings or error messages and no pending agreements.

  4. Followed steps from TN3164. iCloud was checked. However, the option was "Compatible with Xcode 5". Changed it to "Include CloudKit support" and saved. Forced a reprovisioning by unchecking and rechecking the Automatic Signing feature in Xcode. WORKED.

(I believe I said previously that this was an OLD app...)

Thank you for your help. (I'll copy this into a reply in the FB to complete your records.)

Automatic Code Signing Error
 
 
Q