Apple - Cannot log into iCloud after upgrade to macOS Mojave

You're absolutely right, this is a very common occurrence right now. It is a known issue, to put it mildly. Its not entirely tied to Mojave per se, nor do I think your theory of "the root cause must be a corrupted state that is kept by iCloud locally as persistent data that resides local to a macOS user account", is it exactly (though it is not outside the realm of possibility). But far more likely is that you're experiencing the fallout of several recent significant changes affecting iCloud authentication across the board, due to several serious security vulnerabilities discovered in the past few months. What's happening is that Apple's tring to implement a "middle ground" approach in not simply breaking iCloud syncing across the board all at once for everyone, so some processes will continue to accept the unpatched authentication tokens, while others require immediate reauthentication. Its a mess. But: its not quite as terrible as it seems (in my experience).

Having just conquered this very thing (again) on one of my my own machine's a couple of hours ago (and having done so several times in the last couple of months), I can tell you there's unfortunately not a straightforward "1. 2. 3." solution I can give you, but your best bet is to stick with working with the iCloud Preference Pane and related rather than doing a "deep dive" just yet.

Here's what I'd recommend:

First: make sure you have an up local backup (Time Machine or the like).

Then, what you'll want to do is basically attempt to fully sign out of all the places where you authenticate with your Apple ID: App Store, iTunes, Photos, etc., and then the iCloud prefpane. Try unchecking as many synced item's as possible first, particularly Find My Mac and Keychain. These may take a minute or two to actually disengage and "uncheck", but if it takes longer than that, just force quit System Preferences and try again. Also, try clicking the "Account Details" and "Manage" buttons, the same thing will likely happen, it'll freeze up for a bit, and then it will either actually bring those panes up, or hang. Again, just keep going back, and try to get to the point where you're fully signed out, or, if you get the "Update Apple ID Settings: Some account services" box again and it doesn't hang, you'll be prompted several times, alternating between asking for your iCloud password and your local admin password. This is a good thing, it means its finally updating the local Keychain stores across the board.

Eventually (in my experience, after about 20 minutes of this, maybe 10 force quits), you should either be fully logged out of iCloud, or the "Update Apple ID Settings" thing will finally work. Once you're at that point, you should be able to re-sign in, and these issues should go away.

I know that's, um, not the most precise solution, but it has worked for me on several machines. Let me know if it doesn't work for you. But trust me, its a lot less messier than fully ripping out the iCloud keychain and authentication tokens; (at that point, you may as well just sign up for a new Apple ID).


I'm assuming the other answer I provided you didn't work given your "I expect a concrete answer that allows resolving the actual issue" regarding the bounty grace period, here are some "concrete" things you could do that would resolve your inability to log in. However, I must warn you they will likely lead to some data loss in iCloud and a lot of other headaches.

The simplest:

  1. Do a clean reinstall of Mojave and create a clean user account. That is:

    A. ⌘-R again, but before installing open Disk Utility (from the menu bar) and and delete all your existing partitions; reformat your drive with a single clean APFS partition, then re-install.

    B. After install, when creating your user account, authenticate using your Apple ID, but do not migrate any data from Time Machine perform and other automated restore any other type of backup. You will no longer have this problem. But you will need to reinstall all your applications by hand, etc.

  2. To answer your question regarding "removing what files resets [sic] the iCloud client in macOS to a "clean" state": What you're talking about are not kept in invididual files, but in your Keychain store. So, you could open Keychain Access.app and delete all the items that begin with com.apple.account, com.apple.cloudd, com.apple.gs.iCloud, com.apple.gs.idms, etc., as well as iMessage Encryption Key, iMessage Signing Key, etc. I can't give you a full list because which ones you will have is highly variable (it depends on which sync services you've been using). However, I cannot stress how much do not recommend you do this.


So in the end I had to delete the account, create a new one, and recover Desktop, Documents, Movies, Music, and Pictures from a TimeMachine backup as well as import mailboxes also from this backup (under Library/Mail) into Apple Mail.

Shame on Apple: based on this experience I won't hasten do perform their next macOS upgrade!