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.
Two emails at most: when the free schema check ships, and when the app does. Unsubscribe in one click.
You're on the list. You'll hear when the schema check ships, and when the app does.
Optional: what does your app sync with?
- 0.6 siPhonewrites in "Trip plan"
- 1.5 siPhonesends the change
- 2.3 siCloudquotaExceeded
- 3.6 siPhoneshows "Synced"
- 6.0 sMacold "Trip plan"
- 6.6 siPadold "Trip plan"
- 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
- 0.6 siPhonewrites in "Trip plan"
- 1.3 siPhonesends the change
- 2.0 siCloudsaved
- 2.9 sMacnew "Trip plan"
- 3.6 siCloudrequestRateLimited, retry in 30 s
- 4.9 siPadfetch dropped, never retried
- 6.2 sWatchnew "Trip plan", on its next wake
- 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
- 0.4 sMacgoes offline
- 0.9 siPhoneadds a paragraph
- 1.5 siPhonesends the change
- 2.2 siCloudsaved
- 3.0 siPadnew paragraph
- 3.6 sMacfixes a typo
- 5.6 sMacback online
- 6.0 sMacsends the change
- 6.7 siCloudserverRecordChanged
- 7.4 sMacoverwrote the server copy
- 8.5 siPhoneparagraph gone
- 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
- 0.6 siPhone, v2.4archives "Trip plan"
- 1.3 siPhone, v2.4sends the change
- 2.1 siCloudunknown field Note.archivedAt
- 3.7 siPhone, v2.4sends the change
- 4.5 siCloudfailed
- 6.1 siPhone, v2.4sends the change
- 6.9 siCloudevery save refused
- 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
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.
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 →
| Test | 2 devices | 3 devices | 8 devices | 2 people, shared |
|---|---|---|---|---|
| iCloud full | passed | failed | passed | passed |
| Rate limited, with a retry-after | passed | passed | flaky | passed |
| A batch partly fails | passed | passed | passed | passed |
| A batch too large to send | passed | passed | passed | passed |
| The network drops and returns, over and over | passed | passed | passed | passed |
| A record too big to save in one piece | passed | passed | passed | passed |
| A save that timed out, though iCloud kept it | passed | passed | passed | passed |
| iCloud unavailable, with a retry-after | passed | passed | passed | passed |
| An asset upload cut off halfway | passed | passed | passed | passed |
| A record arrives before its asset | passed | passed | passed | passed |
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.
| Record | Field | iPhone | iPad | Result |
|---|---|---|---|---|
| Note "Trip plan" | body | 3 paragraphs | 2 paragraphs | differs |
| Note "Trip plan" | modifiedAt | 10:42:07 | 10:41:55 | differs |
| Tag "travel" | exists | yes | no | differs |
| Note "Packing" | body | 1 paragraph | 1 paragraph | same |
3 differences in 2 records. 214 other records identical. The iPad is missing the paragraph written on the iPhone at 10:42.
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.
# .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
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.
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
| Question | Your agent, on its own | With Sync Bench |
|---|---|---|
| What gets tested | What the agent guesses could go wrong | 57 ways sync really breaks, from forum threads and real incidents |
| How iCloud fails in the tests | A mock the agent wrote, from the same idea as the sync code | A simulated iCloud held to recordings of the real one, retaken on every iOS release |
| What a pass means | The code and its tests agree with each other | The sync holds up against how iCloud behaves |
| When Apple changes CloudKit | You find out when your users do | The simulation gets updated once, for everyone |
| What it costs | Days 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
- 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.
- 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.
- 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.
- 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.
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
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 waitlistQuestions
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.
Two emails at most: when the free schema check ships, and when the app does. Unsubscribe in one click.
You're on the list. You'll hear when the schema check ships, and when the app does.
Optional: what does your app sync with?