Post

Replies

Boosts

Views

Activity

Reply to iOS 13 - Attempting to store >= 4194304 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid
[User Defaults] CFPrefsPlistSource<0x600000609200> (Domain: ***, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): Attempting to store >= 1048576 bytes of data in CFPreferences/NSUserDefaults on this platform is invalid. This is a bug in Target or a library it usesTvOS Simulator 4K, 13+Found the UserDefaults limit in TvOS is 500Kb https://developer.apple.com/library/archive/documentation/General/Conceptual/AppleTV_PG/index.html. Also tried the UserDefaults.sizeLimitExceededNotification to clear all with if let appDomain = Bundle.main.bundleIdentifier { UserDefaults.standard.removePersistentDomain(forName: appDomain) }
May ’20