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).
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:
-
Check if the configuration of the Xcode's Apple Accounts (Xcode > Settings > Apple Accounts) looks good.
-
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.
-
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.
-
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.