I have a very perplexing problem: I am unable to connect to iCloud while running my app on an iPad in XCode 7.1 debugger. This is my code to check to see if I have a iCloud connection:
// do we have a connection?
id currentiCloudToken = [[NSFileManager defaultManager] ubiquityIdentityToken];
NSURL *url = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:@"iCloud.com.pragerphoneapps.BookstoreInventoryManager"];
id myContainer = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier: nil];
Each of these statements returns 'nil' as a result of the method calls. I have looked at all of my settings, both in XCode and the iPad device. I have run out of things to check.
Are there any docs out there that would give me a list of things to look for? (I've checked on SO, Google, iCloud Programming Guide and the iCloud Design Guide, but found nothing.
I have tried to change the iCloud id, but can't find any directions on how to do that. When I try to sign in to iCloud from my iPad, it keeps asking me for my Apple Id password, which I enter (I know it's good because I have reset it four (4) times today), and it keeps asking and finally locks me out again!
I would really appreciate some ideas on this.