The following warning appears in the Xcode print bar:
Main thread Checker:ui API called on a background Thread
What is wrong with this?
This is not necessarily a mistake, it can be understood as a warning that he is not a mistake, because it does not necessarily affect your code functionality, and may have no effect on your implementation capabilities.
So the implication is this:
This is a new feature of Xcode 9: The main thread detector (main threads Checker).
When it does, it means that the code that would have been executed in the main thread was executed by you in the sub-thread.
Then we have to solve, just need to check our code, modify it just fine.
Attached to my own error:
I was in the detection status bar direction, did not switch to the main thread processing, so reported this log, modified and then run on OK.
-enjoy~
IOS Main thread Checker:ui API called on a background thread explanation