In development. The free schema check ships first, then the app.

Your app said "Synced". It wasn't.

Sync Bench is the test bench for iCloud sync. It will run your app's own sync code on simulated iPhones, iPads and Macs, make iCloud fail the ways it really does, and tell you in one sentence what went wrong. For apps on CKSyncEngine, SwiftData or Core Data.

Sample Notes 4 devices and iCloudReplay
0s1s2s3s4s5s6s7s8s9s10siPhoneiCloudMaciPadWatchwrites in "Trip plan"quotaExceededshows "Synced"old "Trip plan"old "Trip plan"old "Trip plan"
  1. 0.6 siPhonewrites in "Trip plan"
  2. 1.5 siPhonesends the change
  3. 2.3 siCloudquotaExceeded
  4. 3.6 siPhoneshows "Synced"
  5. 6.0 sMacold "Trip plan"
  6. 6.6 siPadold "Trip plan"
  7. 7.4 sWatchold "Trip plan"

iCloud refused the save for quota and the change left the queue, so the app told the user it synced and the edit never reached the Mac, iPad or Watch.

Sent
1
Saved
0
Arrived
0
Failed
1
0s1s2s3s4s5s6s7s8s9s10siPhoneiCloudMaciPadWatchwrites in "Trip plan"new "Trip plan"requestRateLimited, retry in 30 sfetch dropped, never retriedold "Trip plan"new "Trip plan", on its next wake
  1. 0.6 siPhonewrites in "Trip plan"
  2. 1.3 siPhonesends the change
  3. 2.0 siCloudsaved
  4. 2.9 sMacnew "Trip plan"
  5. 3.6 siCloudrequestRateLimited, retry in 30 s
  6. 4.9 siPadfetch dropped, never retried
  7. 6.2 sWatchnew "Trip plan", on its next wake
  8. 8.0 siPadold "Trip plan"

The Mac got the new note, and the Watch on its next background wake. iCloud rate-limited the iPad's fetch, the app dropped it instead of waiting 30 seconds, and the iPad never asked again.

Sent
1
Saved
1
Arrived
2
Failed
2
0s1s2s3s4s5s6s7s8s9s10siPhoneiCloudMaciPadWatchadds a paragraphnew paragraphfixes a typoserverRecordChangedoverwrote the server copyparagraph goneshows the Mac's copy
  1. 0.4 sMacgoes offline
  2. 0.9 siPhoneadds a paragraph
  3. 1.5 siPhonesends the change
  4. 2.2 siCloudsaved
  5. 3.0 siPadnew paragraph
  6. 3.6 sMacfixes a typo
  7. 5.6 sMacback online
  8. 6.0 sMacsends the change
  9. 6.7 siCloudserverRecordChanged
  10. 7.4 sMacoverwrote the server copy
  11. 8.5 siPhoneparagraph gone
  12. 9.0 sWatchshows the Mac's copy

The Mac fixed a typo while offline. When it came back, iCloud reported a conflict, and the app answered by overwriting the server's copy. The paragraph written on the iPhone vanished.

Sent
2
Saved
1
Arrived
1
Failed
3
0s1s2s3s4s5s6s7s8s9s10siPhone, v2.4iCloudMaciPadWatcharchives "Trip plan"unknown field Note.archivedAtevery save refusednote still active
  1. 0.6 siPhone, v2.4archives "Trip plan"
  2. 1.3 siPhone, v2.4sends the change
  3. 2.1 siCloudunknown field Note.archivedAt
  4. 3.7 siPhone, v2.4sends the change
  5. 4.5 siCloudfailed
  6. 6.1 siPhone, v2.4sends the change
  7. 6.9 siCloudevery save refused
  8. 8.2 sWatchnote still active

Version 2.4 saves a field that was never deployed to Production, so iCloud refuses every note it sends. The schema check fails this build before it ships.

Sent
3
Saved
0
Arrived
0
Failed
3
0s1s2s3s4s5s6s7s8s9s10sOwneriCloudGuest, MacGuest, iPadOwner, Watchwrites in shared notenew paragraphnew paragraphremoves the guestedits offlineno accessstill shows the note
  1. 0.4 sGuest, Macgoes offline
  2. 0.8 sOwnerwrites in shared note
  3. 1.3 sOwnersends the change
  4. 2.0 siCloudsaved
  5. 2.8 sGuest, iPadnew paragraph
  6. 3.1 sOwner, Watchnew paragraph
  7. 3.6 sOwnerremoves the guest
  8. 4.3 sGuest, Macedits offline
  9. 6.1 sGuest, Macback online
  10. 6.5 sGuest, Macsends the change
  11. 7.2 siCloudno access
  12. 8.3 sGuest, Macstill shows the note

The owner removed a guest whose Mac was offline with an edit. iCloud refused the edit, which is right, but the Mac kept showing a note it no longer has access to.

Sent
2
Saved
1
Arrived
2
Failed
2

Open the demo, with example data →

Why iCloud sync is hard to test

Sync is a distributed system, and iCloud gives you none of the tools you'd expect for one. CloudKit Console shows totals for a whole container, not what one device sent, what iCloud accepted, or what it's still holding. You can't make iCloud fail on demand, and a schema mistake in Production is permanent. So sync gets tested by hand on two phones, and the rest turns up in support email.

A few database teams solved this kind of problem years ago. FoundationDB and TigerBeetle run their whole system inside one process, inject the failures the real world throws at it, and replay any bug exactly from a seed. It's called deterministic simulation testing. Sync Bench will bring it to iCloud: your app's own sync code on many simulated devices, against a simulated iCloud held to recordings of the real one.

Where it is today. The guide is live. The schema check comes next, run on Pikos's own releases first and then published. The simulated iCloud, the probe that records the real one, and the Mac app don't exist yet. Everything on this page about them is the plan, and the demo's numbers are invented.

Test lab

57 ways sync breaks, tested before you ship.

57 tests: many devices at once, conflicting edits, shared records, account changes and iCloud's limits. Each will run against a simulated iCloud, held to recordings of the real one and re-recorded on every iOS release.

With CKSyncEngine it will be fast because nothing boots: every device is simulated inside one test process, running your app's own sync code, with no simulators and no network. SwiftData and Core Data run on simulators, which is too slow for a pull request, so their tests will run nightly or on your Mac, and pull requests get the schema check.

Every pull request, with CKSyncEngine
Every test, 10 times with different timing
target: about 5 min
Nightly, with CKSyncEngine
Every test, 200 times with different timing
in any CI with a Mac
With SwiftData or Core Data
11 of the 57 tests can't run, the ones where iCloud itself misbehaves

All 57 tests, and what each one checks →Which ones need CKSyncEngine →How the simulated iCloud will stay true →

Test2 devices3 devices8 devices2 people, shared
iCloud fullpassedfailedpassedpassed
Rate limited, with a retry-afterpassedpassedflakypassed
A batch partly failspassedpassedpassedpassed
A batch too large to sendpassedpassedpassedpassed
The network drops and returns, over and overpassedpassedpassedpassed
A record too big to save in one piecepassedpassedpassedpassed
A save that timed out, though iCloud kept itpassedpassedpassedpassed
iCloud unavailable, with a retry-afterpassedpassedpassedpassed
An asset upload cut off halfwaypassedpassedpassedpassed
A record arrives before its assetpassedpassedpassedpassed

When a test fails, see what differs

Pick any two devices and Sync Bench will list every record that doesn't match, field by field. A TestFlight tester will be able to copy a sync report from your app, and their device joins the comparison.

Try it in the demo →

Compare · iPhone and iPad · Sample Notes
RecordFieldiPhoneiPadResult
Note "Trip plan"body3 paragraphs2 paragraphsdiffers
Note "Trip plan"modifiedAt10:42:0710:41:55differs
Tag "travel"existsyesnodiffers
Note "Packing"body1 paragraph1 paragraphsame

3 differences in 2 records. 214 other records identical. The iPad is missing the paragraph written on the iPhone at 10:42.

Schema check

Catch schema gaps before they reach Production.

Free and open source, and coming first, before the app. Ship a build that saves a field iCloud's Production doesn't have, and every one of those saves fails for your users. This check will compare the two before release and stop the build on any gap.

Get notified when it ships →

# .github/workflows/release.yml, once the check is published
- name: Check CloudKit schema
  uses: sync-bench/schema-check@v1
  with:
    container: iCloud.com.example.notes
    token: ${{ secrets.CLOUDKIT_MANAGEMENT_TOKEN }}

✓ Note.title, Note.body, Tag.name, Tag.colour
✕ Note.archivedAt (TIMESTAMP) is missing in Production
  Deploy the schema in CloudKit Console, then re-run.

# Any other CI with a Mac: Xcode Cloud, Bitrise, CircleCI, GitLab
sync-bench schema check --container iCloud.com.example.notes
For agents

Your agent writes the sync. Sync Bench checks it.

An agent will happily write your sync code and the tests for it, and the two will agree. If both come from the same wrong idea of how iCloud behaves, every test passes and users still lose changes.

A test is only worth something if it comes from outside the code it checks. Sync Bench is the part an agent can't make up: what to test, and how iCloud really fails.

Every view will also be a command that returns JSON and a tool on an MCP server, so a coding agent can run the tests, read why one failed, fix the code and prove the fix on the exact same run.

You don't have to learn every way iCloud sync can fail. Sync Bench will drive real iCloud into each failure, record what it does, and hold every test to that recording.

Connect your agent →

agent  run_lab { "app": "sample-notes" }
       ✕ iCloud full · 3 devices · seed 18342
agent  replay { "seed": 18342 }
       why: a change refused for quota leaves the queue
agent  edits SyncQueue.swift: re-queue on quotaExceeded
agent  run_lab { "app": "sample-notes" }
       ✓ 228 of 228 passed
Building it yourself, or not
QuestionYour agent, on its ownWith Sync Bench
What gets testedWhat the agent guesses could go wrong57 ways sync really breaks, from forum threads and real incidents
How iCloud fails in the testsA mock the agent wrote, from the same idea as the sync codeA simulated iCloud held to recordings of the real one, retaken on every iOS release
What a pass meansThe code and its tests agree with each otherThe sync holds up against how iCloud behaves
When Apple changes CloudKitYou find out when your users doThe simulation gets updated once, for everyone
What it costsDays of agent time, then keeping it right$59 once, if you're on the waitlist

How the simulated iCloud will stay true to the real one

  1. Real iCloud, on purposeA probe app will run on real iPhones, iPads and Macs against real iCloud, drive it into every failure on the list, and record exactly what it does.
  2. Again on every releaseThe probe will run again for each new iOS and macOS, betas included, so a change in iCloud shows up here before it shows up in your app.
  3. The simulation has to matchEvery recording will be replayed against Sync Bench's simulated iCloud. Where they differ, the simulation gets fixed before the next release ships.
  4. Built on a real app firstPikos's sync will be the first thing it tests, and every way Pikos or a customer finds sync breaking will become a test for everyone.
Pricing

Pay once. Updates after the first year are optional.

Planned prices. Join the waitlist and the app is $59 at launch instead of $79.

Teams
One licence per person, covering every Mac they use. CI runners need no licence.
Hosted runs
Not built. Reply to the launch email if you'd use them.

Free

$0

for good

  • The schema check, as a command, a GitHub Action and an MCP tool
  • Test runs on your Mac, for one app
  • JSON from every command, for your agent
Get it when it ships

Sync Bench25% off

Regular price $79Launch price $59

once, per person, if you're on the waitlist at launch

  • Everything in Free
  • Nightly runs, every test 200 times
  • Every app you sync
  • The inspector, compare and production sync health
  • A year of updates included

$79 for everyone else. After the first year, $49 a year if you want new versions. The app keeps working either way.

Join the waitlist

Questions

What is Sync Bench?

A Mac app and a CI step, in development, for developers whose apps sync through iCloud with CloudKit, CKSyncEngine, SwiftData or Core Data. It will make sync fail on purpose, show what each device sent and received, and check your CloudKit schema against Production before you ship.

Why does SwiftData or CloudKit sync stop without an error?

The common causes are a schema that wasn't deployed to Production, a full iCloud account, rate limiting, an account change, and conflicting offline edits. Most surface as a quiet failure on one device rather than an error you can see. Sync Bench is being built to reproduce each of them on demand, though a full iCloud and rate limiting need CKSyncEngine.

Why not have my agent write the tests?

Because they'll agree with the code. If your agent writes both the sync and a mock iCloud to test it against, both come from the same idea of how iCloud behaves, so a wrong idea passes every test. Sync Bench brings what the agent can't make up: the ways sync really breaks, and a simulated iCloud checked against recordings of the real one.

Can a coding agent use it?

Yes. Every view will also be a command that returns JSON and a tool on an MCP server, so an agent can check the schema, run the failures, read a replay and fix the code without a person opening the app.

Can I add more than one app?

Yes. A workspace will hold every app you sync, each with its own container, tests and production health, side by side.

What does production sync health collect from my users?

It will come from an optional module you add to your app, and it's off unless you add it. It sends counts, durations and error codes, never what anyone wrote. Where that data is kept isn't decided yet, and it will be written here before the module ships.

Is there anything free?

Yes. The schema check will be free and open source, test runs on your own Mac will be free for one app, and the demo already shows the whole app with example data.

When can I use it?

The free schema check ships first, then the test lab and the Mac app. Leave your email and you'll hear when each is ready, and nothing else.

I use SwiftData. What would it catch?

A field your build saves that Production doesn't have, which works on your phone and fails for every TestFlight tester, caught by the free schema check on every pull request. Conflicts, device mixes, sharing and account changes, run on simulators against your development container, nightly or on your Mac. Not a full iCloud or a rate limit: SwiftData handles those inside Apple's framework, where nothing can make them happen on demand, so 11 of the 57 tests need CKSyncEngine. Core Data with CloudKit is the same.

What does a run cost in CI?

Runs need a Mac, because Apple's sync frameworks only exist on macOS, so the cost is whatever your CI charges for Mac time. Public repos on GitHub Actions run free. On a private repo at GitHub's current Mac price, a pull-request run costs an estimated 30 to 50 cents and a nightly run a few dollars. Xcode Cloud includes free hours with a developer membership, and a Mac of your own as a runner costs nothing per run. The numbers get measured on Pikos and published before launch.

Does it need GitHub Actions?

No. Everything is one command, sync-bench, that runs on any Mac: Xcode Cloud, Bitrise, CircleCI, GitLab, Buildkite, a self-hosted runner, or your laptop. The GitHub Action is a shortcut that runs the same command.

Can the deep runs happen on your Macs instead of my CI?

Not yet: hosted runs aren't built. Quick runs happen on your Mac and the nightly ones in your own CI. If you'd use hosted runs, reply to the launch email and ask. Enough people asking is what gets them built.

What will it cost?

A free tier for good, and the app at $79 once for one person with a year of updates. People on the waitlist pay $59 at launch. Teams buy one licence per person, and CI runners need none of their own.

Hear when it's ready.

The free schema check ships first, then the app. People on the list get the beta first, and the launch price.