本文介绍了如何调试SwiftUI AttributeGraph周期警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在使用SwiftUI的应用中,我收到了很多AttributeGraph周期警告。
I'm getting a lot of AttributeGraph cycle warnings in my app that uses SwiftUI. Is there any way to debug what's causing it?
这是在控制台中显示的内容:
This is what shows up in the console:
=== 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 ===
推荐答案
日志是由(从私有 AttributeGraph.framework )
AG::Graph::print_cycle(unsigned int) const ()
可以为 print_cycle
以及,它有多大用处取决于您的情况,但是肯定会产生错误d堆栈在Xcode中。
and, well, how much it could be helpful depends on your scenario, but definitely you'll get error generated stack in Xcode.
这篇关于如何调试SwiftUI AttributeGraph周期警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!