Post

Replies

Boosts

Views

Activity

Comment on MAJOR Core Data Issues with iOS 18 and sdk - Data Missing for many users?!
Ziqiao, the users complaining about data loss is growing and steady. Clearly there was a change to iOS 18 or 17 relative to the way NSPersistentCloudKitContainer handles data when the user is not using or allowing use of CloudKit. In early SDKs it was stated NSPersistentCloudKitContainer was fungible with NSPersistentContainer, now it is almost as if a user has NSPersistentCloudKitContainer options set to nil and the data is deleted. Can you confirm or provide a link to documentation confirming?
3w
Comment on MAJOR Core Data Issues with iOS 18 and sdk - Data Missing for many users?!
As you see in the code below we use the recommended approach for getting URL to datastore. None of our code creates a new store on fault intentionally? We have not encrypted the store intentionally. The App does NOT set any of the background entitlements other than Remote Notifications for Cloudkit. We only ever interact with CoreData and Cloudkit via the APIs and do not move files or copy files directly. Data migration for model changes is also via APIs and using prescribed techniques.
Jan ’25
Comment on MAJOR Core Data Issues with iOS 18 and sdk - Data Missing for many users?!
Hi, thanks for the response, but in my original post above, I stated that on the 1 device we have seen where the issue exists we DID open the CoreData store and attempted to retrieve the "Chart" entity (what the code example is illustrating) and what we got was 0 Chart Entities returned from NSFetchRequest. The CoreData store was there but empty according to the Fetch. Now this was on a device where BEFORE the update to our software for iOS 18 there HAD been data in the CoreData store.
Jan ’25
Comment on CloudKit - Cannot create or modify field 'CD_nameFirstChar' in record 'CD_Charts' in production schema
So on the cloudkit console deploy schema changes was still available on the Development container. I don't understand that actually because I thought I read someplace that if the initialization code listed below is run then the Dev schema is deployed and that once an App runs on production using that schema that it automatically gets deployed to production? Someplace I developed a misconception. I used the deploy option and now I see the field on the production container. So THANKS!
Apr ’24
Comment on CloudKit - Cannot create or modify field 'CD_nameFirstChar' in record 'CD_Charts' in production schema
You might not be wrong see my reply below. But I am at a loss as to how it happened. Also I do not see those errors on my Console or any of the OS_Logs I am getting from some TestFlight users now. In fact I am not seeing ANY CKERRORS for the two testers I have who are reporting the issue.... and yet not updating. ... By the way dude, thanks for the reply. Any other thoughts based on the below?!
Apr ’24
Comment on Crash Writing NSUserDefaults in CompletionBlock of dismissViewController
I marked this right because it had a lot of good ideas that are probably in the zone. I don't know for sure that it fixed the issue, but I agree that it was NOT a good idea to be doing all that stuff in the the completion block of code that dismisses a viewController. I moved it to the parent viewController's viewDidAppear as per the suggestion. Probably the right way to go.
Nov ’22