ios - How to solve: This application is modifying the autolayout engine from a background thread -


this error logged console when part of code changing ui items other threads main thread. how can find this?

main problem "this application modifying autolayout engine background thread" seem logged long time after actual problem occurs, can make hard troubleshoot.

i managed solve issue creating 3 symbolic breakpoints.

debug > breakpoints > create symbolic breakpoint...

breakpoint 1:

  • symbol: -[uiview setneedslayout]

  • condition: !(bool)[nsthread ismainthread]

breakpoint 2:

  • symbol: -[uiview layoutifneeded]

  • condition: !(bool)[nsthread ismainthread]

breakpoint 3:

  • symbol: -[uiview updateconstraintsifneeded]

  • condition: !(bool)[nsthread ismainthread]

with these breakpoints, can break on actual line incorrectly call ui methods on non-main thread.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -