Modifications to the > layout engine must not be performed from a background thread after it has been accessed from the main thread

后端 未结 3 861
渐次进展
渐次进展 2020-12-15 16:52

I just downloaded iOS 13 for my iPhone and the new Xcode. I wanted to test my app for iOS 13, but when I try to run my app it will give me a error after a few seconds. Error

3条回答
  •  天命终不由人
    2020-12-15 17:23

    For anyone having problems pinning down the cause, try the following.

    Click on your scheme (next to the stop button), then Edit Scheme.

    Under Run -> Diagnostics you have to activate Main Thread Checker.

    As indicated by the breakpoint that got added, your execution will now halt when you try to alter the UI on a non-main thread.

提交回复
热议问题