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
Had the same problem because I was using performSelectorInBackground.
performSelectorInBackground