ios - 如何调试 UI Xcode?
<p><p>收到此运行时警告,如何获取它发生的行?</p>
<pre><code>runtime: UI API called from background thread: - must be used from main thread only
</code></pre>
<p>是否有任何断点,即<code>符号断点</code>?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p><strong> <a href="https://developer.apple.com/documentation/code_diagnostics/main_thread_checker" rel="noreferrer noopener nofollow">Main Thread checker</a> </strong> 可以选择在问题处暂停。您只需要启用它。</p>
<blockquote>
<p><strong>EditScheme</strong>-><strong>Run</strong>-><strong>Diagnostics</strong>-><strong>RunTime API Checking</strong>-> Select both <strong>Main
Thread Checker</strong> and <strong>Pause On Issues</strong></p>
</blockquote>
<p> <a href="/image/LH10u.png" rel="noreferrer noopener nofollow"><img src="/image/LH10u.png" alt="enter image description here"/></a> </p></p>
<p style="font-size: 20px;">关于ios - 如何调试 UI Xcode?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/46584893/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/46584893/
</a>
</p>
页:
[1]