please make sure to call UserDefaults only after - appDidFinishLaunching. If you still see the issue amd are using UserDefaults.standard, then try creating a new instance of UserDefaults with your own suitename and use that instead of standard UserDefaults.
Topic:
App & System Services
SubTopic:
Core OS
Tags: