apple id not working in simulator

I'm working on an iOS app using CloudKit. I followed Apple's advice in the link below to test in the simulator with a newly created Apple id. This Apple id is working fine for logins in my browser. However when trying to use it in my simulator it keeps telling me the username/password is incorrect, which is really not true.


https://developer.apple.com/library/content/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html


I tried the same with my developer apple ID and there it works fine. Afaik the settings regarding 2FA are the same. Resetting the simulator didn't solve it also.


Any ideas?

I had same problem to connect to sandbox apple ID account on iOS simulator, fixed by accepting terms and conditions on icloud.com ... Thank you Apple, your dev UX is so bad ...

On the simulator 17.2 I was getting no call backs from accountStatusWithCompletionHandler: and the Settings app was crashing when I tried to open iCloud. After a few resets of Settings the simulator Settings started working and I could open iCloud. At that point I was getting call backs to accountStatusWithCompletionHandler: and everything was working.

apple id not working in simulator
 
 
Q