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 Domain=com.apple.accounts Code=13 UserInfo={NSLocalizedDescription=, NSUnderlyingError=0x7f*c10 {Error Domain=com.apple.accounts.keychain Code=-25295}}}}
Impart the error codes:
Error Domain=com.apple.accounts Code=13
This code can be associated to Keychain errors with a uncomplicated Google search
Error Domain=com.apple.accounts.keychain Code=-25295
This error code (and many others) can be explained at this link:
https://krypted.com/lists/comprehensive-list-of-mac-os-x-error-codes/
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
Solution
Open Terminal and Type the following commands
sudo -v ; killall -9 accountsd com.apple.iCloudHelper ; defaults delete MobileMeAccounts ; mkdir ~/Library/Accounts/Backup; mv ~/Library/Accounts/*.sqlite* ~/Library/Accounts/Backup/ ; killall -9 accountsd com.apple.iCloudHelper ; sudo reboot
or
- 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 “com.apple.account”
- 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.
Related Articles

