Ancestors

Toot

Written by Brendan Thompson on 2024-10-24 at 04:09

Does anyone know a useful way to trigger a sync with iCloud? Seems like it just gets stuck and never kicks off a sync even though data is written to SwiftData.

[#]ios #iOSdev #BuildInPublic

=> More informations about this toot | More toots from BrendanThompson@mastodon.social

Descendants

Written by Number 1 Sweathog on 2024-10-24 at 04:19

@BrendanThompson

=> View attached media

=> More informations about this toot | More toots from Ronnie@mastodon.social

Written by Brendan Thompson on 2024-10-24 at 05:06

@Ronnie this legit seems to be the way hahah

=> More informations about this toot | More toots from BrendanThompson@mastodon.social

Written by Duncan Babbage on 2024-10-24 at 05:05

@BrendanThompson

  1. Make sure you’re not in low power mode as that seems to put them on hold.

  1. Swipe the app into the background for a second then bring it back to foreground as from my testing backgrounding an app seems to trigger sync.

  1. Turn on logging to get more visibility:

-com.apple.CoreData.CloudKitDebug 1 (or higher)

-com.apple.CoreData.Logging.stderr 1 (or higher)

  1. See if quitting the app on the receiving end and relaunching it results in updates there.

=> More informations about this toot | More toots from babbage@iosdev.space

Written by Duncan Babbage on 2024-10-24 at 05:06

@BrendanThompson I am making some assumptions here. Primarily, since SwiftData is backed by Core Data that the Core Data logging will give you what you need, and the kick will do the same job.

=> More informations about this toot | More toots from babbage@iosdev.space

Written by Brendan Thompson on 2024-10-24 at 06:23

@babbage thanks dood! Ended up being a major dumb-dumb on my end and not running the updated models on a real device

=> More informations about this toot | More toots from BrendanThompson@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113360435092154874
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
279.117525 milliseconds
Gemini-to-HTML Time
0.785152 milliseconds

This content has been proxied by September (3851b).