Search code examples
iosxcode6icloudcloudkit

iCloud Account Not Supported In iOS Simulator?


I am trying to test my iOS app that uses the CloudKit APIs with the simulator. When I try to log in with my iCloud credentials it says,

Device Not Supported

Your Apple ID is valid, but this iPhone is not qualified for iCloud.

enter image description here

According to Apple's documentation I should be able to log in as if it was a normal phone. I assume I must be doing something silly but I can't think of what I would be doing wrong.


Solution

  • If the Apple ID you are trying to login with has two factor authentication enabled then you will see that message on the simulator. So far none of the simulated iOS devices correctly support 2FA for Apple IDs.

    The work around for this is to:

    1. Temporarily disable 2FA on the Apple ID
    2. Login on the required simulators with the Apple ID
    3. Re-enable 2FA for the Apple ID. (Don't forget this part!)

    As long as the simulator has been linked to the Apple ID it will remain linked even if you enable 2FA. However, if you do a full reset of the simulator (eg. Reset Content and Settings) or need to logout then you will need to repeat the process.