I am working with iOS 9 and Xcode 7. My app crashes when I build and run it. I get the following error. I have no idea how I am modifying the autolayout engine on a background thread. I may not be providing all of the neccessary info but I am not sure what someone would need to see in order to help solve the issue.
I do know that this is called six times and I do have six of the same type of view controller.
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.
Stack:(
0 CoreFoundation 0x000000010fb8bca5 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010f604dcd objc_exception_throw + 48
2 CoreFoundation 0x000000010fb8bbdd +[NSException raise:format:] + 205
3 Foundation 0x000000010f37f7cf _AssertAutolayoutOnMainThreadOnly + 79
4 Foundation 0x000000010f1e227e -[NSISEngine withBehaviors:performModifications:] + 31
5 UIKit 0x000000011098a304 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 58
6 UIKit 0x000000011098ae43 -[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded] + 249
7 UIKit 0x000000011098b90a -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeeded] + 348
8 UIKit 0x00000001101f6b3a -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 159
9 UIKit 0x00000001102053c3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 662
10 QuartzCore 0x000000010e85b044 -[CALayer layoutSublayers] + 150
11 QuartzCore 0x000000010e84fa44 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
12 QuartzCore 0x000000010e84f8c2 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
13 QuartzCore 0x000000010e84448d _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
14 QuartzCore 0x000000010e8713b8 _ZN2CA11Transaction6commitEv + 508
15 QuartzCore 0x000000010e87169a _ZN2CA11Transaction14release_threadEPv + 224
16 libsystem_pthread.dylib 0x000000011306f72a _pthread_tsd_cleanup + 86
17 libsystem_pthread.dylib 0x000000011306f451 _pthread_exit + 117
18 libsystem_pthread.dylib 0x000000011306e6cd _pthread_wqthread + 879
19 libsystem_pthread.dylib 0x000000011306c40d start_wqthread + 13
)
Take care,
Jon