libc ++ abi.dylib:以NSException类型的未捕获异常终止(lldb)

时间:2017-03-10 18:12:32

标签: ios xcode nsexception

我正在Xcode上开发一个Radio应用程序。它有一个抽屉,我有一些"表视图单元"并在它们上面放置按钮(基本上它们都包含URL)。在我运行之后,这是他们向我展示的错误。 我该如何解决?

2017-03-10 18:01:49.267 CITY FM 96.00[1422:48726] *** Assertion failure in -[UITableViewCell _setHostsLayoutEngine:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/NSLayoutConstraint_UIKitAdditions.m:2886
2017-03-10 18:01:49.273 CITY FM 96.00[1422:48726] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00d83494 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00548e02 objc_exception_throw + 50
    2   CoreFoundation                      0x00d8332a +[NSException raise:format:arguments:] + 138
    3   Foundation                          0x001c3322 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118
    4   UIKit                               0x024411a9 -[UIView(AdditionalLayoutSupport) _setHostsLayoutEngine:] + 257
    5   UIKit                               0x01e127cf -[UITableViewCell _setupTableViewCellCommon] + 378
    6   UIKit                               0x01e135e5 -[UITableViewCell initWithCoder:] + 134
    7   UIKit                               0x0208249d UINibDecoderDecodeObjectForValue + 739
    8   UIKit                               0x020826ae UINibDecoderDecodeObjectForValue + 1268
    9   UIKit                               0x020821b2 -[UINibDecoder decodeObjectForKey:] + 320
    10  UIKit                               0x01ad0411 -[UIView initWithCoder:] + 993
    11  UIKit                               0x0208249d UINibDecoderDecodeObjectForValue + 739
    12  UIKit                               0x020821b2 -[UINibDecoder decodeObjectForKey:] + 320
    13  UIKit                               0x01e6fe44 -[UIRuntimeConnection initWithCoder:] + 201
    14  UIKit                               0x0208249d UINibDecoderDecodeObjectForValue + 739
    15  UIKit                               0x020826ae UINibDecoderDecodeObjectForValue + 1268
    16  UIKit                               0x020821b2 -[UINibDecoder decodeObjectForKey:] + 320
    17  UIKit                               0x01e6ee49 -[UINib instantiateWithOwner:options:] + 1411
    18  UIKit                               0x01bfb380 -[UIViewController _loadViewFromNibNamed:bundle:] + 429
    19  UIKit                               0x01bfbdb8 -[UIViewController loadView] + 189
    20  UIKit                               0x01bfc1c4 -[UIViewController loadViewIfRequired] + 154
    21  UIKit                               0x01c482bb -[UINavigationController _layoutViewController:] + 52
    22  UIKit                               0x01c48b75 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 421
    23  UIKit                               0x01c48d1c -[UINavigationController _startTransition:fromViewController:toViewController:] + 145
    24  UIKit                               0x01c4a118 -[UINavigationController _startDeferredTransitionIfNeeded:] + 1038
    25  UIKit                               0x01c4b39e -[UINavigationController __viewWillLayoutSubviews] + 68
    26  UIKit                               0x01e304b7 -[UILayoutContainerView layoutSubviews] + 252
    27  UIKit                               0x01afc3d4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 810
    28  libobjc.A.dylib                     0x0055d059 -[NSObject performSelector:withObject:] + 70
    29  QuartzCore                          0x018f1096 -[CALayer layoutSublayers] + 144
    30  QuartzCore                          0x018e48b6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388
    31  QuartzCore                          0x018e471a _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
    32  QuartzCore                          0x018d6ee7 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317
    33  QuartzCore                          0x0190b847 _ZN2CA11Transaction6commitEv + 561
    34  QuartzCore                          0x0190c108 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
    35  CoreFoundation                      0x00c9575e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
    36  CoreFoundation                      0x00c956be __CFRunLoopDoObservers + 398
    37  CoreFoundation                      0x00c8a868 CFRunLoopRunSpecific + 504
    38  CoreFoundation                      0x00c8a65b CFRunLoopRunInMode + 123
    39  UIKit                               0x01a262da -[UIApplication _run] + 540
    40  UIKit                               0x01a2beb9 UIApplicationMain + 160
    41  CITY FM 96.00                       0x0005d89a main + 138
    42  libdyld.dylib                       0x03db9a25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

0 个答案:

没有答案