Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.*.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd #657

Closed
2 of 3 tasks
BunnyBuddy opened this issue Feb 20, 2023 · 4 comments

Comments

@BunnyBuddy
Copy link

BunnyBuddy commented Feb 20, 2023

What happened?

We are using Onesignal in our Flutter App and it was working fine, but a few days ago it started showing this exception while the App still works.

(lldb) 2023-02-20 15:02:21.526768+0500 Runner[3800:1252662] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.*.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

Steps to reproduce?

Whenever we build our app for the first time.

What did you expect to happen?

I expect this is not a big issue and its just a warning of some sort

OneSignal Flutter SDK version

Release 3.2.3

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Installing and launching...
(lldb) 2023-02-20 15:02:21.526768+0500 Runner[3800:1252662] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.*****.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
[SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")

Code of Conduct

  • I agree to follow this project's Code of Conduct
@BunnyBuddy BunnyBuddy changed the title [Bug]: (lldb) 2023-02-20 15:02:21.526768+0500 Runner[3800:1252662] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.inspireuplift.iustorefront.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd [Bug]: (lldb) 2023-02-20 15:02:21.526768+0500 Runner[3800:1252662] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.***.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Feb 20, 2023
@BunnyBuddy BunnyBuddy changed the title [Bug]: (lldb) 2023-02-20 15:02:21.526768+0500 Runner[3800:1252662] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.***.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Couldn't read values in CFPrefsPlistSource<0x283f25400> (Domain: group.com.*.onesignal, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Jul 27, 2023
@felipecastrosales
Copy link

any news about this? I'm facing with this problem also.

@nan-li
Copy link
Contributor

nan-li commented Sep 28, 2023

Hi @BunnyBuddy and @felipecastrosales,

I apologize for the delay, this is an xcode warning that can be ignored. Please see this answer by an Apple Developer Tools Engineer team member in this thread:

It's unfortunate that there is a visible log message here, because it's unrelated to virtually all of the issues reported in this thread. The logged message is spurious unless you're doing very specific things that I don't think are possible without using private functions (it was added to catch misuse of those functions, but unfortunately also caught a normal usage case).

Any bugs you and other people in the thread seeing are separate, and fairly likely to be unrelated to each other as well. e.g. irregularly not seeing user defaults is almost certainly due to a bug in user defaults, not due to something your app is doing. Crashing is likely unrelated to user defaults entirely, and should be diagnosed via the crashlog, not the logged message.

Are you experiencing a problem with the SDK?

@ChoyCheeWei
Copy link

Hi @BunnyBuddy and @felipecastrosales,

I apologize for the delay, this is an xcode warning that can be ignored. Please see this answer by an Apple Developer Tools Engineer team member in this thread:

It's unfortunate that there is a visible log message here, because it's unrelated to virtually all of the issues reported in this thread. The logged message is spurious unless you're doing very specific things that I don't think are possible without using private functions (it was added to catch misuse of those functions, but unfortunately also caught a normal usage case).
Any bugs you and other people in the thread seeing are separate, and fairly likely to be unrelated to each other as well. e.g. irregularly not seeing user defaults is almost certainly due to a bug in user defaults, not due to something your app is doing. Crashing is likely unrelated to user defaults entirely, and should be diagnosed via the crashlog, not the logged message.

Are you experiencing a problem with the SDK?

Hi @nan-li, I have the same issue also, based on the this thread is that mean we have to change the group.com.*.onesignal to teamNumber.group.com.*.onesignal ?

@nan-li
Copy link
Contributor

nan-li commented Oct 24, 2024

Hi, we have had no further reports of this. Please upgrade the OneSignal SDK if you or anyone is still having this issue. If this is still an issue, please open a new report with updated information.

@nan-li nan-li closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants