Modifying the autolayout engine from a background thread error, from C++
问题 I get the following error in Xcode 7.1 when making a UI call from C++, through a two-way djinni architecture: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. I am able to solve the problem in Objective-C with the solution given here: Getting a “This application is modifying the autolayout engine” error? dispatch_async(dispatch_get_main_queue(), ^{ // code here