After updating my MAC OS to the latest version, due to some issues, my iCloud / Apple account logout and I was never able to login after that. It showing “Verification Failed – An unknown error occurred”.I tried many methods shown in Apple Support Forums and nothing helped me.

I was due to release a new version of an app developed for one of our clients. Me personally tried contacting the Apple Support team and nothing worked.

After searching a lot, I find a solution which made my life easy.

Here is what I have done to fix the problem: Verification Failed – An unknown error occurred

A wrong Keychain can restrict various services from logging in, including iCloud. Here is a method to decide if your Keychain is the problem of not being able to login to iCloud.

Open your Console app (under Utilities)
In the search area, type “Login”
Press the Clear button.
Attempt to login to your iCloud.
Note down the error messages. They may view something like this”
Error Code=13 UserInfo={NSLocalizedDescription=, NSUnderlyingError=0x7f*c10 {Error Code=-25295}}}}

Impart the error codes:

Error Code=13

This code can be associated to Keychain errors with a uncomplicated Google search

Error Code=-25295

This error code (and many others) can be explained at this link:

In this matter, 25295 is performed by pressing Command F and searching “25295”. The search determines the subsequent code:

Keychain Manager error codes

errKCInvalidKeychain = -25295

However, all signs are that the Keychain is corrupt, preventing services from logging in. In fact, by searching your personal Apple ID in the keychain to find login keys, you might try erasing Public keys. In doing so, MacOS will lose to delete any key that is corrupt.

Verification Failed – An unknown error occurred. MAC Catalina


Open Terminal and Type the following commands

sudo -v ; killall -9 accountsd ; defaults delete MobileMeAccounts ; mkdir ~/Library/Accounts/Backup; mv ~/Library/Accounts/*.sqlite* ~/Library/Accounts/Backup/ ; killall -9 accountsd ; sudo reboot


  • Open Keychain Access.
  • Search for “IDS” in the search area in the top-right, then click the Keychain column to classify the items.
  • For Keychain “login,” delete all of the “IDS” parts that are the type of “application password”
  • Repeat the earlier two steps two more times, once for each of the preceding search terms: “FaceTime” and “”
  • Search for “iMessage” in the search field in the top-right. Remove all “iMessage Signing Key” also “iMessage Encryption Key”
  • Once finishing these steps, restart your Mac and try to sign in to iCloud newly.

Verification Failed - An unknown error occurred. MAC Catalina
Article Name
Verification Failed - An unknown error occurred. MAC Catalina
How I fixed the issue for icould / apple id login error. Verification Failed - An unknown error occurred. MAC Catalina. Solutions here.
Publisher Name
M A Q Computer Services LLC
Publisher Logo