OGeek|极客世界-中国程序员成长平台

标题: ios - 如何调试 UI Xcode? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 15:44
标题: ios - 如何调试 UI Xcode?

收到此运行时警告,如何获取它发生的行?

runtime: UI API called from background thread: -[UIView bounds] must be used from main thread only

是否有任何断点,即符号断点



Best Answer-推荐答案


Main Thread checker 可以选择在问题处暂停。您只需要启用它。

EditScheme->Run->Diagnostics->RunTime API Checking-> Select both Main Thread Checker and Pause On Issues

enter image description here

关于ios - 如何调试 UI Xcode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46584893/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4