Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CloudKit sync refresh problem when changes going from iOS to macOS

Aperta
#15 6 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ios, macos, swift

Direzione di ricerca

Riproduci lo scenario con due dispositivi, con l’app in esecuzione su iOS e macOS, confrontando le modifiche originate dal Mac e quelle originate dall’iPhone. Inizia tracciando il percorso di aggiornamento di macOS attorno a database.syncEngine.fetchChanges(.init(scope: .all)); il lavoro è completato quando le modifiche dell’iPhone compaiono nell’interfaccia del Mac senza portare l’app in background e poi riportarla in primo piano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am then testing sync by running this app in my MacBook and my iPhone. Generally sync is working, but the behavior is very different when syncing changes from macOS -> iOS compared to from iOS -> macOS:

  1. I open app on both my MacBook and iPhone
  2. I add item on my MacBook, it shows up a second later on iPhone
  3. On the other hand, if I add item on my iPhone it never shows up on my MacBook until I send app to background and then bring back to foreground.

Is this known/expected behavior? Any way to fix?

I have also tried calling try await self.database.syncEngine.fetchChanges(.init(scope: .all)) on the mac, but that doesn't seem to help. I must command-tab to another app, and then command tab back to the SyncEngine app to see changes updated in the Mac UI

Lingua principale
Swift
Stelle
270
Fork
15
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apple/sample-cloudkit-sync-engine

Tutte le issue di apple/sample-cloudkit-sync-engine

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.