I am trying to set up iCloud within my iOS application, I have done the following:
After submitting a report to Apple, it turns out that Apple systems are useless AGAIN!
Ok, so if you are creating a NEW application or you are only just adding iCloud to your application - you will need to make sure the system doesn't pick up or create a iOS8 cloud container!
If it does you need to remove it from your app entitlements file, remove the selected containers in the Apple Developer Console and re-download certs again!
Thanks Apple again!
I got blamed for using pre-released software! I haven't touch Xcode 6 yet!!!
If you're just adding iCloud to an app for the first time or want to upgrade to use CloudKit after using an older iCloud container:
What I did: - leave only com.apple.developer.icloud-services in entitlements file - in Capabilities under iCloud marked key value storage and iCloud Documents (cloud kit EMPTY) - Containers set to specify custom but do not select any of your containers - This will probably give you RED warning sign under steps but leave it as it is DO NOT FIX - Regarding provisioning profile Development and Distribution profiles have to have App ID which has iCloud enabled but NOT linked to any container - In those provisioning profiles set under iCloud OLD version for Xcode 5 etc. not a new one related to iCloud containers
I had an error of "Add iCloud Containers to your App ID".
Automatic signing was unable to resolve an issue with target's entitlements.
I don't even use iCloud Containers, only Key-value storage(keychain). I also switched in iCloud section under my App Identifier in Member Center from "Compatible with Xcode 5" to "Include CloudKit support (requires Xcode 6)" problem still remains.
So I fixed it like this:
And then problem solved for me!
Maybe it's a late comment, but I post it here in case that somebody is struggling for the same reason.
I encountered this issue on Xcode8 recently when I was trying to archive. Generally, I enabled iCloud with Xcode in following steps:
Capabilities
panel in my target by setting the toggle to ON.iCloud
under my App Identifier in Member Center turns green automatically, and a iCloud container is created automatically with my App Identifier. (Apple's system does this for us.)Signing(Release)
section in General
panel in my target.Then I got errors like:
Provisioning profile "iCloud Test" doesn't include the com.apple.developer.ubiquity-container-identifiers, com.apple.developer.icloud-container-identifiers, and com.apple.developer.icloud-services entitlements. Code signing is required for product type 'Application' in SDK 'iOS 10.1' Code signing is required for product type 'Application' in SDK 'iOS 10.1'
At last I found that there were two options in iCloud section under my App Identifier in Member Center. By default, the Compatible with Xcode 5
was selected, but I succeeded by selecting the other option.