Using iCloud in iOS Simulator

user772845 picture user772845 · Oct 17, 2011 · Viewed 13k times · Source

In my App, when I try to run code in the iOS Simulator:

NSURL *iCloudURL = [fileManager URLForUbiquityContainerIdentifier:@"2VHM28566N.com.eept.TestICloud"];
NSLog(@"IS ICloud : %@", [iCloudURL absoluteString]);

It shows that iCloudURL is nil.

Can we use iCloud without an iPhone device?

Answer

n.evermind picture n.evermind · Oct 17, 2011

I tried to run my iCloud app today on the simulator and there is no option to enable iCloud in the simulator as far as I can see. I looked in settings, but no luck. So the answer would be no, you can't really test iCloud unless you test it on an actual device.

If anyone has a workaround, that would be fabulous. It's a bit tedious to always test your app on the device.