Been encountering this error a lot in my OS X using swift:
\"This application is modifying the autolayout engine from a background thread, which can
You get similar error message while debugging with print statements without using 'dispatch_async' So when you get that error message, its time to use
Swift 4
DispatchQueue.main.async { //code }
Swift 3
DispatchQueue.main.async(){ //code }
Earlier Swift versions
dispatch_async(dispatch_get_main_queue()){ //code }