如何调试 SwiftUI AttributeGraph 循环警告? [英] How do I debug SwiftUI AttributeGraph cycle warnings?

查看:19
本文介绍了如何调试 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 ===

推荐答案

日志是由 (from private AttributeGraph.framework) 生成的

The log is generated by (from private AttributeGraph.framework)

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

所以你可以为print_cycle

而且,它有多大帮助取决于您的场景,但您肯定会在 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 循环警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆