I have a messaging app where I use an app extension to be able to look up contact information when I receive an APN containing a new message. I exchange the Addressbook contacts info which I have saved in my app through app groups with the help of NSUserDefaults.
Recently I keep getting the below error:
[User Defaults] Couldn't read values in CFPrefsPlistSource (Domain: group.com.xxxx.xxxx, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
This sometimes returns empty NSUserDefaults throughout my app and makes the app behave as a first time use. I have looked at other link, especificly this one: Failed to read values in CFPrefsPlistSource iOS 10
None of the suggested solutions solved my problem. Anyone knows how I should proceed with this?