35 failures in 7 groups

Every way sync breaks,
tested.

Each failure runs against every mix of devices, hundreds of times a night with different timing, and ends with a check of what has to be true. The first version is being built and proven on Pikos, a notes, tasks and calendar app that syncs through iCloud.

Many devices

Not two test phones: every mix of devices a real user owns, making changes at once.

FailureWhat must hold afterwards
Two to eight devices editing at onceEvery device ends with the same data
iPhone, iPad, Mac, Watch and Vision Pro togetherEach platform's quirks, like background limits, still converge
A device offline for a week, then backIt catches up, and sends what it held
A brand-new device joining an old accountIt downloads everything, and the time it takes is measured
Clocks that disagree by minutesThe order of edits comes from sync, not from a wrong clock

Conflicts

The same data changed in two places before either heard about the other.

FailureWhat must hold afterwards
Two devices edit the same recordBoth edits merge, field by field, and neither is silently lost
Two devices edit the same fieldOne rule decides the winner, the same way on every device
One device deletes what another editsDelete-or-keep is decided once, with no record coming back from the dead
Edits to an item that was moved or reorderedThe edit follows the item, and the order converges
A parent deleted while a child is addedNo orphan is left behind on any device

Shared data and multiple users

A record shared with other people, who edit it from their own Apple IDs.

FailureWhat must hold afterwards
Owner and participant edit the same shared noteBoth see both edits, from their own accounts
A participant's access is removed mid-editTheir pending change is refused, and their copy is removed
A participant leaves the shareThe owner keeps everything; the participant keeps nothing
A share accepted on a second deviceIt appears there too, without a duplicate
Read-only participants try to writeThe write is refused on the device, before iCloud refuses it

Accounts

The Apple ID under the app changes, or stops being there.

FailureWhat must hold afterwards
Signed out in the middle of a syncNothing is sent to the wrong account, and the app says why sync stopped
Another Apple ID signed inNothing merges across accounts
iCloud switched off for the appLocal data is kept, and sync resumes cleanly when it's back
Advanced Data Protection keys resetCKSyncEngineThe encrypted zone is rebuilt from what the devices hold

Network and iCloud limits

iCloud refusing, slowing or losing the connection, the ways it does in production.

FailureWhat must hold afterwards
iCloud fullCKSyncEngineNothing is dropped, and sending resumes when space returns
Rate limited, with a retry-afterCKSyncEngineNothing is sent before the retry-after
A batch partly failsCKSyncEngineOnly the failed records are retried
A batch too large to sendIt's split, and every record still arrives once
The network drops and returns, over and overNo change is lost, and none is sent twice
A record too big to save in one pieceIt's stored as an asset or chunks, and arrives whole

The app's own life

Things iOS and macOS do to an app while it's syncing.

FailureWhat must hold afterwards
App killed mid-sendNo change is lost, and none is sent twice
Suspended in the background for hoursIt picks up where it left off
A silent push never arrivesThe next fetch catches up anyway
The device's own storage is fullSync pauses and says why, and nothing is half-written

Schema and app versions

Different versions of your app, and a schema in Production that can only grow.

FailureWhat must hold afterwards
A field the build saves isn't in ProductionThe schema check fails the build before it ships
An old app version meets data from a new oneIt keeps what it doesn't understand, and saves nothing over it
A user skips three versionsTheir data migrates, step by step, with nothing lost
Change token expiredCKSyncEngineA full refetch, ending with the same data
A new install replays years of deletesIt converges, and the time it takes is measured
A zone deleted, purged or resetEach reason is handled, and nothing comes back from the dead

What works with what

The fast runs swap your app's sync engine for a fake iCloud inside one test process. CKSyncEngine, and libraries built on it like SQLiteData, can be swapped. SwiftData and Core Data run their sync inside Apple's framework, which can't be, so failures iCloud itself has to cause are marked CKSyncEngine above.

CKSyncEngineSwiftData, Core Data
Schema check, inspector, compareyesyes
Devices, conflicts, sharing, accountsfast, in one processnightly, on simulators
iCloud full, rate limits, expired tokensyesnot possible

How a run works

Simulated devices make random edits through your app's own sync code, against a stand-in for iCloud that fails the way the real one does. Each run has a seed, so any failure can be replayed exactly, step by step, in the inspector. A scripted check against your real staging container catches what a stand-in can't.

Want this for your app?

Two emails at most: when the free schema check ships, and when the app does. Or explore the demo →