iOS Simulator - Can't log in with iCloud

I am trying to test the iCloud sync functionality of my app between a (real) device and the simulator, however I can't seem to log into iCloud. When I go to Settings->iCloud and enter my account details, it just gets stuck on 'Verifying'. However if I enter incorrect details, it brings up the invalid password prompt as expected.

Has anyone got a fix for this?


Solution 1:

TL;TR Log into http://www.icloud.com and agree to the terms.

It works. But there are some additional steps needed:

At work I tried with my new apple id: at work [email protected]. At first It didn't work even though I was able to access iOS dev center. I realised that it is required to access to http://www.icloud.com with such Apple ID and agree to the terms. After a few seconds I received a 'Welcome to iCloud' email to my work address and then I went back to the simulator and I successfully logged in.

BTW, for a personal account [email protected] I have for ages and use regularly it worked from the beginning probably because I have agreed to the terms a long time ago.

So not only @icloud.com of @me.com or @mac.com accounts work. All accounts work.

Solution 2:

  1. Create an Apple ID from appleid.apple.com. You need an email address and a phone number to authenticate.

  2. Login to icloud.com and accept terms and conditions.

  3. Open Simulator, log in with your new Apple ID.

  4. Done.

Solution 3:

I had the same problem today as I was trying to use iCloud + Core Data in the simulator (iOS 8.0, Mavericks). What I found out is that you should use, in the simulator, your @icloud.com e-mail. If you do that, you are able to login and use some iCloud functionality.