6

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?

koen
  • 5,383
  • 7
  • 50
  • 89
Nelly v
  • 229
  • 1
  • 12
  • is it solved? can you gave the answer? – lauwis Apr 20 '22 at 17:01
  • @lauwis unfortunately I have been unable to find a solution. Our product has this warning at all times however I reverted from using NSUserdefaults for important data and instead used PDKeychain... Not ideal but what can one do! – Nelly v Apr 21 '22 at 11:29

0 Answers0