Jaanus Kase · @jaanus
354 followers · 6 posts · Server iosdev.space

Dear people who use CloudKit -

Have you recently seen CloudKit error code 15 (“serverRejectedRequest”), and have suggestions what to do about it?

I am seeing it in response to a perfectly reasonable CKQueryOperation to a zone in a shared database. Similar query to other zones in the same database works.

Doing the same in CK web console shows me a red box with “internal error”.

Filed FB13133751 about it. I don’t think I can do anything further about it on my side.

#cloudkit

Last updated 1 year ago

Axel Le Pennec · @alpennec
237 followers · 544 posts · Server iosdev.space

@simonnickel @hidde what do you mean? SwiftData will sync between devices using like NSPCKC but you have to manually process history if you need to dedupe data for example (what Apple calls coexistence: SwiftData + Core Data stack).

#cloudkit

Last updated 1 year ago

Jaanus Kase · @jaanus
336 followers · 2 posts · Server iosdev.space

I’m on Mastodon for two things.

I build things on Apple platforms. I make @tact. I read (a lot) and post (a little) about related technologies: , , , , , , , as well as product design.

I support Ukraine. I follow Ukrainians and friends of 🇺🇦. Please donate to 🇺🇦 until 🗑🇷🇺 is gone: u24.gov.ua or any other respected charity. My Twitter is mostly about Ukraine - twitter.com/jaanus

#introduction #swift #swiftui #Combine #cloudkit #coredata #xcode #concurrency

Last updated 1 year ago

SENTINELITE · @SENTINELITE
53 followers · 691 posts · Server moth.social

@Marker’s getting there... Saving files in the ! 👀

#icloud #cloudkit

Last updated 1 year ago

SENTINELITE · @SENTINELITE
52 followers · 671 posts · Server moth.social

An update to this:

requires all properties to either be optional or have initial values.

Followup Q:
Do we need to define like `let x: String = “testStr”` or can we just define them via the `init(x: String) {…}?

#cloudkit

Last updated 1 year ago

Axel Le Pennec · @alpennec
218 followers · 477 posts · Server iosdev.space

Has anyone built an app with sharing where participants needs to link their CloudKit identity to a database Person entity object? Like a task management app with assignees join the project.

I was thinking about a flow with a "self-selection process" where participants select an existing Person from the database (or create a new one) when joining the share.

The app would then store the CKShare.currentUserParticipant.userIdentity.userRecordID as a field on the Person object.

#coredata #cloudkit

Last updated 1 year ago

thatvirtualboy · @thatvirtualboy
135 followers · 582 posts · Server techhub.social

Part of what I’m trying to track down with these questions is that sharing in my Development environment between a Dev device and simulators is working beautifully.

However for some reason in Production, sharing is incosistent, and almost always works for the first time you share a record with another user, but subsequent shares fail or only show a blank Share Sheet.

#cloudkit

Last updated 1 year ago

thatvirtualboy · @thatvirtualboy
135 followers · 581 posts · Server techhub.social

Another question...

What could have caused these ckAsset record types to show up in my Development Schema as available to deploy to Production?

The image1 and image2 are regular Core Data attributes, that can be shared via iCloud, but I wasn’t anticipating the ckAsset records being available as a Schema change?

#cloudkit

Last updated 1 year ago

thatvirtualboy · @thatvirtualboy
135 followers · 580 posts · Server techhub.social

Ok friends... I’m trying to track down some oddities I’m finding in my production NSPersistentCloudKitContainer instances... and one thing I’ve come across is seemingly duplicate Indexs, but with different Index Types. Is this a problem? Or is this normal?

#cloudkit

Last updated 1 year ago

Axel Le Pennec · @alpennec
209 followers · 419 posts · Server iosdev.space

@matt1corey hey Matt. I’m digging a bit more into Sharing (with & ). I know you implemented sharing in your apps.

In an app where I want to attribute an event to a specific user, how would you do that? E.g. a task management app with assignee and assignees can be added by sharing to them. I want to track who created/edited/completed a task for example (like a log of events/activities). Should I add the userRecordName in the object?

#cloudkit #coredata #nspersistentcloudkitcontainer

Last updated 1 year ago

BK · @SeekAndDefineBK
16 followers · 13 posts · Server hachyderm.io

Is anyone else getting this when attempting to build and run on an actual device? Running on the simulator works fine…

#swiftdata #cloudkit #ios17

Last updated 1 year ago

Axel Le Pennec · @alpennec
197 followers · 362 posts · Server iosdev.space

The app is 💯 built in .

is used for local data persistency and is used to sync data between devices (both user content & preferences).

is used to process and manage auto-renewable subscriptions.

#swiftui #coredata #cloudkit #RevenueCat

Last updated 1 year ago

Adam Overholtzer · @adam
258 followers · 265 posts · Server iosdev.space

I’m continuing to get several emails a day about sync failing in my app, and now the 1-star reviews are starting to appear. No errors in logs or CloudKit console.

Is anyone else seeing a rise in CloudKit failures?

#cloudkit #iosdev

Last updated 1 year ago

Adam Overholtzer · @adam
256 followers · 263 posts · Server iosdev.space

Are any other devs getting more complaints about sync in their apps? I’ve gotten about a dozen emails about sync failing (without errors) in the last few days.

#cloudkit #iosdev

Last updated 1 year ago

Matt Corey · @matt1corey
264 followers · 763 posts · Server iosdev.space

The CloudKit issues I've found over the last few day are big enough that I wanted to capture my thoughts. So I did! Plenty of bugs here, but some really important ones that are related to CloudKit Share privacy configurations - if anyone uses these API's, and has a solution, please reach out!

mattcorey.substack.com/p/addin

#indiedev #cloudkit

Last updated 1 year ago

Sebastian · @apfelnutzer
91 followers · 703 posts · Server social.tchncs.de

@Mecid - I read your posts re: a redux-like state container for and I'm playing around with those ideas. Right now I’m struggling to integrate synched entities as a part of the composed state. The point is, that they can change at any time, which I get notified about via subscribers, but the state can only be changed in the reducers. So far I solved this by using computed properties within the state, but I'm not really happy with that solution. Any ideas?

#combine #coredata #cloudkit #swiftui

Last updated 1 year ago

Geraint Davies · @Geraint
82 followers · 45 posts · Server mastodon.me.uk

My (spare time) watch app uses CloudKit and core data to sync data with the phone app. It’s accumulated about 3MB of data.

If I delete the watch app and re-install it, that 3MB of data takes about 4 *hours* to download, and my app is terminated multiple times for excess cpu usage in cloudkit.

Is this normal? It’s really not usable like this.

#cloudkit #watchos

Last updated 1 year ago

Max Handelman · @maxhandelman
174 followers · 319 posts · Server hachyderm.io

I'm running into some issues with CloudKit. I've pushed my schema changes to production, changed over my entitlements to point to production, but in my latest TestFlight build, data isn't syncing. It also appears that the CloudKit zone that previously existed in the development schema no longer exists, and there's no CloudKit zone in production. Am I missing something here, or is this all normal?

#cloudkit #coredata #iosdev

Last updated 1 year ago

Jaanus Kase · @jaanus
328 followers · 534 posts · Server mastodon.justtact.com

In this year’s platform release, many CloudKit types, most importantly CKRecord, are now Sendable 🎉

Nice to see in the docs, and confirmed in an Ask Apple session.

I built Canopy with Xcode 15 and was wondering where all the actor boundary crossing warnings had gone.

I still got work to make Canopy completely warning-free, but this is great.

#wwdc23 #cloudkit #concurrency #sendable #swift #canopy

Last updated 1 year ago

Sebastian · @apfelnutzer
91 followers · 693 posts · Server social.tchncs.de

Seit ich den erweiterten Datenschutz für meinen iCloud-Account aktiviert habe funktioniert die -Integration im -Simulator nicht mehr. Am Anfang dachte ich, das liegt vielleicht daran, dass iOS 16.4 noch nicht für den Simulator verfügbar ist - inzwischen ist das aber der Fall und das Problem besteht weiterhin. Ist der Simulator nicht mit bzw. kompatibel?

#iosdev #eds #adp #xcode #cloudkit

Last updated 1 year ago