Creating a zone on first launch
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing the sample app's accountChange handling, .zoneNotFound recovery, and sync-engine startup path. Compare zone creation during launch with creation before record uploads, then verify the chosen behavior against first-upload errors and CloudKit dashboard telemetry.
Written by the indexing model from the issue text.
Description
The sample app creates a custom zone when the accountChange event is triggered or if a .zoneNotFound error occurs while sending records. This naturally leads to .zoneNotFound errors on the first upload(s) until it fixes itself.
Is there a specific reason it's done this way? Would it be possible to call
self.syncEngine.state.add(pendingDatabaseChanges: [ .saveZone(CKRecordZone(zoneName: Self.zone.zoneID.zoneName)) ])
at app launch and have it finish before any other sync operations can occur?
Or is the approach in this sample project the recommended way and you just have to live with those error occurring once. This makes it especially hard to use the Telemetry Error feature in the CloudKit dashboard because you can never be sure if those errors are genuine.
- Dominant language
- Swift
- Stars
- 270
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apple/sample-cloudkit-sync-engine
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
apple/sample-cloudkit-sync-engine#17 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apple/sample-cloudkit-sync-engine#15 · 6 comments · 1 reaction ·
-
var listID: String Open
Difficulty 1/5 Under an hour Newbie friendliness 42/100
apple/sample-cloudkit-sync-engine#10 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
apple/sample-cloudkit-sync-engine#6 · 3 reactions ·
-
Implementation flaw Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
apple/sample-cloudkit-sync-engine#5 · 14 comments · 1 reaction ·
All issues in apple/sample-cloudkit-sync-engine
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Cocoanetics/SwiftACP#52 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
storyblok/storyblok-swift#12 ·
-
bug yapback
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100