What is Main Thread Checker in Xcode

Viewed 18554

I checked what's new in Xcode 9 documentation and I found this

enter image description here

But i didn't understand what is that how I can use this with new Xcode 9.

4 Answers

It can be enabled/disabled in the diagnostics option of the scheme. Besides, the "Pause on issues" is a comfortable option to debug these problems.

Xcode 11 enter image description here

Xcode <11 Example

Under the Runtime API Checking section, ensure that the Main Thread Checker is enabled to see if you are executing ui methods in a non-UI thread

enter image description here

enter image description here

In XCODE-12 Go to debug then select Scheme then edit scheme Select Run -> Diagnostics

Related