Xcode日志"Writing analzed variants"

Xcode log "Writing analzed variants"

运行 Xcode 13 在模拟器中启动我的 iOS 应用程序时,我看到以下日志:

Writing analzed variants.

请注意,希望这是日志的拼写错误:

Writing analyzed variants.

是什么导致了这个日志噪音?我的代码中是否触发了它?

如何隐藏这个“正在编写已分析的变体”。 Xcode日志?

根据奎因的说法,“爱斯基摩人!”在 Apple Developer Technical Support,此消息是 Xcode 记录噪音,可以忽略。

应提交 Apple bug report 以帮助标记日志并使日志静音。


It’s important to keep an eye on log messages and fix any obvious problems they call out. However, if you see a log message that’s not obviously your fault, it could just be log noise.

There are two criteria you should apply here:

  • Is the log message associated with a specific failure? That is, when you see the log message, do you also see other problems?
  • Is the log message written in terms you understand? That is, does it reference APIs or data that you’re using?

If the answer to both of these questions is “No”, it’s reasonable to conclude that the log message is just noise and you can ignore it. If you find it to be particularly irksome, file a bug report requesting that it be silenced.

对我来说,这个问题警告是因为键盘在我的模拟器中不起作用,我在 SceneDelegatewindow 初始化代码中犯了一些错误,但是一旦我删除了该行log/consol

中未显示此消息的代码

我从 SceneDelegate 中删除了这两行,这两行为我造成了这个问题

let windowScene = UIWindowScene(session: session, connectionOptions: connectionOptions)
self.window = UIWindow(windowScene: windowScene)

所以我从 SceneDelegate 中删除了这些

for SceneDelegate Code and the keybaord issue see this

这让我很恼火,因为日志行似乎造成了延迟,这让我的 UI 感觉迟钝。在看到日志中的行并认为它们可能需要时间之前,我尝试了多种方法来加速我的 segue 代码。

我使用的自定义键盘在 iOS 中没有对应的键盘,并且我在“输入”>“键盘”菜单中选择了“使用与 macOS 相同的键盘语言”。关闭它可以消除日志记录,并修复相关的减速问题。