Search code examples
iosxcodeicloud

iCloud Container name prefix change in Xcode 6


I need to update one of my live apps whose iCloud container name prefix is my TeamIDPrefix. Xcode 6 only allows iCloud container names that start with iCloud.

Problem: If I use the new iCloud container name (with prefix of iCloud), my users would no longer be able to access their data which is in in old container (with the TeamID prefix).


Solution

  • This solved my problem.

    1. Create an AppID that includes to iCloud container. It should look like this

    enter image description here

    1. Make an Entitlement file that looks like this (I'm using only iCloud Documents in this example).

    enter image description here

    Xcode will show you errors under "capabilities". Ignore the errors and do not hit "Fix it" as it would mess up everything.

    enter image description here