I think everyone, at least developers, have at least one iCloud account which is linked to an old email address. To address this I’ve been migrating mine over to another domain. The process is extremely easy, just visit appleid.apple.com and change your Apple ID email address.
Although easy, this can be a real pain as you will need to enter your new details 10x times per device. Annoying but worth the effort to clean up your accounts.
I thought I was all set until I ran into an issue on macOS. Since I didn’t sign out of iCloud on macOS before changing my Apple ID email it wouldn’t let me sign out. I figured there had to be information on how to force a logout on Stackoverflow or the Apple forums. But, after multiple searches I wasn’t able to find a solution that simply allowed me to sign out. I decided to look if there was any tweaks to defaults which could help.
After a few attempts I found a solution. If you ever run into this problem, you can simply do the following:
- Open Terminal as a user with Administrator rights
- Type: defaults delete MobileMeAccounts
- Press enter to finish
You should now be able to go into System Preferences, iCloud and see the below iCloud login prompt.