gpt4 book ai didi

ios - 无法读取 CFPrefsPlistSource iOS 10 中的值

转载 作者:IT王子 更新时间:2023-10-29 07:32:50 28 4
gpt4 key购买 nike

我今天已将我的 Xcode 8 更新到 beta 2,我正在尝试在 App 和 Today Extension 之间共享数据。我正面临此日志警告:

2016-07-08 18:00:24.732472 ProjetctX[941:42801] [User Defaults] Failed to read values in CFPrefsPlistSource<0x1700f1280> (Domain: group.x.p.t.o, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null)): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd

谁能帮帮我?

最佳答案

这实际上是 iOS 10 和 macOS 10.12 中引入的虚假警告:

NSUserDefaults tip: in the current OSs there's a logged error "…with a container is only allowed for System Containers…".

This is spurious.

Trying to catch a particular failure mode, caught a normal operation case at the same time.

My successor on UserDefaults also has not figured out a way to make this less alarming without making the symptomatic case impossible to debug :/

https://twitter.com/Catfish_Man/status/784460565972332544 [thread]

在您的团队 ID 前面添加的建议将使警告静音,但也会创建一个新的空用户默认值。这将导致之前存储的任何数据都无法读取。

暂时的解决办法就是忽略它。

此外,Apple 工作人员 CFM on the forums :

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).

关于ios - 无法读取 CFPrefsPlistSource iOS 10 中的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38275395/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com