Post

Replies

Boosts

Views

Activity

Reply to UserDefaults not saving only on iOS 17
No data is being persisted in UserDefaults. In iOS 16, multiple files are created, some for our application and others for dependencies. In iOS 17, only the file with the bundle name is created, and in it, only the keys CKPerBootTasks and CKStartupTime are persisted. If I make a simple test call, for example: UserDefaults.standard.set("test", forKey: "test"), this value won't appear in the keys. But, i can read it from the memory, for some reason the keys are not saved on the plists. I have already tried creating the PrivacyInfo file as described in the documentation, but it also didn't work. I suspect it's some bug in iOS 17 that is affecting my app for some reason because it's very strange that it works fine on iOS 16 and stopped on 17.
Nov ’23