如何调试 SwiftUI AttributeGraph 循环警告?

2024-03-02

我在使用 SwiftUI 的应用程序中收到很多 AttributeGraph 循环警告。有什么方法可以调试导致它的原因吗?

这是控制台中显示的内容:

=== AttributeGraph: cycle detected through attribute 11640 ===
=== AttributeGraph: cycle detected through attribute 14168 ===
=== AttributeGraph: cycle detected through attribute 14168 ===
=== AttributeGraph: cycle detected through attribute 44568 ===
=== AttributeGraph: cycle detected through attribute 3608 ===

日志由(来自私有属性图框架)

AG::Graph::print_cycle(unsigned int) const ()

所以你可以设置符号断点print_cycle

而且,它的帮助程度取决于您的场景,但您肯定会在 Xcode 中收到错误生成的堆栈。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何调试 SwiftUI AttributeGraph 循环警告? 的相关文章

随机推荐