iOS 7 App Crash EXC_CRASH (SIGABRT) objc_exception_throw Works fine on iOS 6

拟墨画扇 提交于 2019-12-06 11:11:20
Kerni

This crash looks like a problem with a constraints you set in your app (in a background thread ?).

In addition this looks similar (not identical) to your other reported crash: https://stackoverflow.com/questions/19114389/app-hang-and-then-crash-ios-7

So in short: your constraints setup (presumably in code) causes this problem. Most likely because your constraints reference a view that is not existing any more.

In Long:

  1. From thread 2 some code is dispatched into the main thread:

    28 libdispatch.dylib 0x37cc59a4 _dispatch_main_queue_callback_4CF + 264

  2. A transition to another View Controller via a navigation controller did finish:

    21 UIKit 0x2fd81416 -[_UIViewControllerTransitionContext completeTransition:] + 70

  3. A scrollview is being removed from its superview:

    18 UIKit 0x2fd3cccc -[UIScrollView removeFromSuperview] + 60

  4. Constraints are being evaluated:

    12 Foundation 0x2de4a918 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 180

  5. The constraints engine wants to log some error into the console:

    11 Foundation 0x2de0b78e NSLog + 22

  6. The constraints engine tries to generate a string:

    5 Foundation 0x2df73336 -[NSISObjectiveLinearExpression description] + 122

  7. An exception occurs because it tries to add a nil object to an NSArray.

This could happen if your constraint rules (done in code) reference another view that does not exist any more. You should check your constraint rules and set breakpoints to find out which one is causing the crash.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!