<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc" -->

---
title: How to fix Contacts not syncing in macOS | daily.dev
description: Changing an Apple Account email can leave stale credentials in macOS's iCloud Contacts settings, breaking sync on just one Mac. On macOS 27.2.1, Justin Searls...
canonical: https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to fix Contacts not syncing in macOS | daily.dev
og:description: Changing an Apple Account email can leave stale credentials in macOS's iCloud Contacts settings, breaking sync on just one Mac. On macOS 27.2.1, Justin Searls...
og:url: https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc
og:image: https://api.daily.dev/og/posts/GANOFJkNC.png
og:image:alt: How to fix Contacts not syncing in macOS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to fix Contacts not syncing in macOS

**[Justin Searls](https://daily.dev/sources/searls)** · 3 min read · 0 upvotes · 0 comments

## Summary

Changing an Apple Account email can leave stale credentials in macOS's iCloud Contacts settings, breaking sync on just one Mac. On macOS 27.2.1, Justin Searls found his Mac's CardDAV records in Accounts4.sqlite still held his old email, even though System Settings showed the new one. Console logs showed a 401 error and 'Failed to get a X-mobile me token'. Instead of signing out of iCloud, he used Codex to help edit the private Accounts4.sqlite database directly, updating the CardDAV ZUSERNAME and related encoded plist fields, then ran a launchctl kickstart command to force a resync.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://justin.searls.co/posts/how-to-fix-contacts-not-syncing-in-macos>

## Questions this post answers

### Why did iCloud Contacts stop syncing on only one of my Macs after I changed my Apple Account email?

The Mac likely still has the old email stored in its local iCloud account database even though System Settings shows the new one. Checking Console logs for 'AddressBookSourceSync' can reveal errors like 'Failed to get a X-mobile me token' with an HTTP 401 and NSURLErrorDomain Code=-1012, pointing to a request sent with the stale address.

_Developers debugging stale iCloud state can save fixes like this one by checking relevant guides on daily.dev._

### How can I check which email address macOS has stored for my iCloud CardDAV account without signing out of iCloud?

Run a read-only sqlite3 query against ~/Library/Accounts/Accounts4.sqlite, joining the ZACCOUNT and ZACCOUNTTYPE tables and filtering for active iCloud accounts with identifiers 'com.apple.account.AppleAccount' and 'com.apple.account.CardDAV'. Comparing the two rows can reveal a mismatch where the AppleAccount row has the current email but CardDAV rows still hold the old one.

_Anyone diagnosing macOS account sync issues can track practical fixes like this via daily.dev._

### How do I fix iCloud Contacts sync without signing out and back into iCloud on a Mac?

Quit Contacts, back up ~/Library/Accounts/Accounts4.sqlite using SQLite's backup API, verify it with PRAGMA quick_check, then update the ZACCOUNT.ZUSERNAME field and related binary plist properties (userName, AccountURL, HomeInfo, PrincipalInfo) for the active CardDAV records in one transaction. Afterward, run launchctl kickstart gui/$(id -u)/com.apple.AddressBook.SourceSync and reopen Contacts to trigger a resync.

_Developers hesitant to sign out of iCloud can find similar low-level workarounds through daily.dev._

## Similar posts on daily.dev

- [The Supabase Bug That Locked Out Users Who Hid Their Apple Email](https://daily.dev/posts/the-supabase-bug-that-locked-out-users-who-hid-their-apple-email-o3wmo2cbz) · Medium · 1 upvotes · 0 comments
- [Why does Mail app contact iCloud when sending a non-iCloud email?](https://daily.dev/posts/why-does-mail-app-contact-icloud-when-sending-a-non-icloud-email--3l5ian2cx) · Hacker News · 0 upvotes · 0 comments
- [Microsoft asks iPhone users to reauthenticate after Outlook outage](https://daily.dev/posts/microsoft-asks-iphone-users-to-reauthenticate-after-outlook-outage-oly28bv0c) · BleepingComputer · 0 upvotes · 0 comments
- [How to sync a Mac app with its iPhone app](https://daily.dev/posts/how-to-sync-a-mac-app-with-its-iphone-app-coaeyn2xr) · Flavio Copes · 0 upvotes · 0 comments
- [Blocking Identity Resolution Infrastructure](https://daily.dev/posts/blocking-identity-resolution-infrastructure-wz9ikv2fb) · WebKit · 1 upvotes · 0 comments

---

Tags: [#apple](https://daily.dev/tags/apple), [#mac](https://daily.dev/tags/mac), [#sqlite](https://daily.dev/tags/sqlite)

[View this post on daily.dev](https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to fix Contacts not syncing in macOS","url":"https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc"},"datePublished":"2026-11-21T17:17:29.004Z","dateModified":"2026-11-21T17:17:59.896Z","description":"Changing an Apple Account email can leave stale credentials in macOS's iCloud Contacts settings, breaking sync on just one Mac. On macOS 27.2.1, Justin Searls...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8bec3b83023ab0315ad2740ae6662785?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8bec3b83023ab0315ad2740ae6662785?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Justin Searls","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Justin Searls","logo":"https://media.daily.dev/image/upload/s--1lBNu4OS--/f_auto/v1756384015/logos/searls","url":"https://daily.dev/sources/searls"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"apple,mac,sqlite","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Justin Searls","item":"https://daily.dev/sources/searls"},{"@type":"ListItem","position":3,"name":"How to fix Contacts not syncing in macOS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-fix-contacts-not-syncing-in-macos-ganofjknc#faq","mainEntity":[{"@type":"Question","name":"Why did iCloud Contacts stop syncing on only one of my Macs after I changed my Apple Account email?","acceptedAnswer":{"@type":"Answer","text":"The Mac likely still has the old email stored in its local iCloud account database even though System Settings shows the new one. Checking Console logs for 'AddressBookSourceSync' can reveal errors like 'Failed to get a X-mobile me token' with an HTTP 401 and NSURLErrorDomain Code=-1012, pointing to a request sent with the stale address. Developers debugging stale iCloud state can save fixes like this one by checking relevant guides on daily.dev."}},{"@type":"Question","name":"How can I check which email address macOS has stored for my iCloud CardDAV account without signing out of iCloud?","acceptedAnswer":{"@type":"Answer","text":"Run a read-only sqlite3 query against ~/Library/Accounts/Accounts4.sqlite, joining the ZACCOUNT and ZACCOUNTTYPE tables and filtering for active iCloud accounts with identifiers 'com.apple.account.AppleAccount' and 'com.apple.account.CardDAV'. Comparing the two rows can reveal a mismatch where the AppleAccount row has the current email but CardDAV rows still hold the old one. Anyone diagnosing macOS account sync issues can track practical fixes like this via daily.dev."}},{"@type":"Question","name":"How do I fix iCloud Contacts sync without signing out and back into iCloud on a Mac?","acceptedAnswer":{"@type":"Answer","text":"Quit Contacts, back up ~/Library/Accounts/Accounts4.sqlite using SQLite's backup API, verify it with PRAGMA quick_check, then update the ZACCOUNT.ZUSERNAME field and related binary plist properties (userName, AccountURL, HomeInfo, PrincipalInfo) for the active CardDAV records in one transaction. Afterward, run launchctl kickstart gui/$(id -u)/com.apple.AddressBook.SourceSync and reopen Contacts to trigger a resync. Developers hesitant to sign out of iCloud can find similar low-level workarounds through daily.dev."}}]}
```

