NSRangeException on iOS 8
I upgraded XCode 5 to 6 to test my projects out on the iPhone 6 and 6 Plus and was getting cryptic crashes on startup: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]' *** First throw call stack: ( 0 CoreFoundation 0x000000010569b3f5 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000104b20bb7 objc_exception_throw + 45 2 CoreFoundation 0x00000001055864d3 -[__NSArrayM objectAtIndex:] + 227 3 UIKit 0x00000001028164e1 _UIViewTopDownSubtreeTraversal + 193 4 UIKit 0x0000000102e43286 -[UIView(UIConstraintBasedLayout_EngineDelegate)