From your error message:
Contacts: CoreData: error: exception during obtainPermanentIDsForObjects: Fetching maximum primary key failed with userInfo of { NSSQLiteErrorDomain = 11; }
I am guessing that the SQLite DB of your Contacts.app
is corrupted.
I would recommend taking the following steps:
Export a backup archive of your contacts (if they are not all on Google)
- You can do this by going to
File > Export... > Contacts Archive
- Quit
Contacts.app
Delete the offending SQLite Database
- From the Finder, select
Go > Go To Folder
from the menu.
- Type in
~/Library/Application Support/AddressBook/
- Select all those files:
Edit > Select All
- Put them in a folder:
File > New Folder With Selection
- Move the folder to the Trash. (In case something goes wrong, we can restore everything)
Launch Contacts.app
and re-create your Google account
- Re-import your contacts archive (again, only if they are not all on google's servers. Otherwise, just let it re-sync.)
Let me know if this works for you!