EXC_BREAKPOINT on different versions of iOS

748 Views Asked by At

My app keeps crashing in 2 different places in any version that is lower than iOS 11.

One of the crashes is an EXC_BREAKPOINT that breaks on the appDelegate class defining line - class AppDelegate: UIResponder, UIApplicationDelegate {}

While the other crashes with EXC_BREAKPOINT on a simple segmentedControl?.removeAllSegments() (and yes I checked if the segmentedControl is empty; its not).

Whats interesting is that I never had this issue so much as 2/3 weeks ago, and I know for a fact that I changed no line of code from those 2 places.

The debugger just says this : "-[UILayoutGuide nsli_superitem]: message sent to deallocated instance 0x600000386db0"

Here is the stack trace:

0 0x000000010a79c92e _T09 30SegmentedControlViewControllerC05setupcD0yyF + 126 1 0x000000010a79c6df _T0930SegmentedControlViewControllerC05setupE0yyF + 511 2 0x000000010a5dba30 _T0929MasterStockInfoViewControllerC11viewDidLoadyyF + 624 3 0x000000010a5dbb04 _T0929MasterStockInfoViewControllerC11viewDidLoadyyFTo + 36 4 UIKit 0x000000010bec101a -[UIViewController loadViewIfRequired] + 1235 5 UIKit 0x000000010bec73a6 -[UIViewController viewWillAppear:] + 118 6 UIKit 0x000000010bef13c8 -[UINavigationController _startCustomTransition:] + 1305 7 UIKit 0x000000010bf01967 -[UINavigationController _startDeferredTransitionIfNeeded:] + 687 8 UIKit 0x000000010bf02b41 -[UINavigationController __viewWillLayoutSubviews] + 58 9 UIKit 0x000000010c0f460c -[UILayoutContainerView layoutSubviews] + 231 10 UIKit 0x000000010bde155b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1268 11 QuartzCore 0x000000010ec60904 -[CALayer layoutSublayers] + 146 12 QuartzCore 0x000000010ec54526 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 370 13 QuartzCore 0x000000010ec543a0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 14 QuartzCore 0x000000010ebe3e92 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294 15 QuartzCore 0x000000010ec10130 _ZN2CA11Transaction6commitEv + 468 16 QuartzCore 0x000000010ec10b37 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 115 17 CoreFoundation 0x000000010e00a717 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23 18 CoreFoundation 0x000000010e00a687 __CFRunLoopDoObservers + 391 19 CoreFoundation 0x000000010dfef720 __CFRunLoopRun + 1200 20 CoreFoundation 0x000000010dfef016 CFRunLoopRunSpecific + 406 21 GraphicsServices 0x00000001117bba24 GSEventRunModal + 62 22 UIKit 0x000000010bd1e134 UIApplicationMain + 159 23 0x000000010a7c2257 main + 55 24 libdyld.dylib 0x000000010f6bd65d start + 1

Any information on this would be helpful, currently exploring all options. If you need more information on this, post a comment and I will get back to you instantly. Thanks

1

There are 1 best solutions below

1
On

Stupid, but I was finally able to figure it out.

I found that in my Interface Builder Document in storyboard, my deployment target was set at 11.0 for the pages I was trying to load.

I hope this helps someone :)