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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -