gpt4 book ai didi

xcode - 如何解决Xcode中的lldb错误?

转载 作者:行者123 更新时间:2023-12-03 17:29:22 27 4
gpt4 key购买 nike

我的应用程序可以在模拟器上正常运行,并且可以在设备上运行,但是从前它开始崩溃。
我只是收到“lldb”错误而没有消息。当我键入“bt”命令时,我看到以下内容:

  • thread #1: tid = 0x24a8, 0x38a1fcc0 libobjc.A.dylibobjc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x38a1fcc0 libobjc.A.dylib
    objc_exception_throw frame #1: 0x2e284bd0 CoreFoundation-[NSException raise] + 8
    frame #2: 0x2ebca15e Foundation
    -[NSObject(NSKeyValueCoding) setValue:forKey:] + 202 frame #3: 0x2ebdbd8c Foundation-[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 300
    frame #4: 0x2e1f4a54 CoreFoundation
    -[NSArray makeObjectsPerformSelector:] + 180 frame #5: 0x30e2553e UIKit-[UINib instantiateWithOwner:options:] + 1122
    frame #6: 0x30d7de8e UIKit
    -[UIViewController _loadViewFromNibNamed:bundle:] + 234 frame #7: 0x30bda344 UIKit-[UIViewController loadView] + 92
    frame #8: 0x30aba874 UIKit
    -[UIViewController loadViewIfRequired] + 72 frame #9: 0x30aba7f0 UIKit-[UIViewController view] + 24
    frame #10: 0x30bda276 UIKit
    -[UIWindow handleStatusBarChangeFromHeight:toHeight:] + 694 frame #11: 0x30b41416 UIKit+[UIWindow _noteStatusBarHeightChanged:oldHeight:forAutolayoutRootViewsOnly:] + 238
    frame #12: 0x30c41b10 UIKit__79 - [UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:]_block_invoke + 132
    frame #13: 0x30aeba1a UIKit
    +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 490 frame #14: 0x30c2431e UIKit+[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 70
    frame #15: 0x30b66dca UIKit
    -[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:] + 462 frame #16: 0x30ac18e0 UIKit-[UIApplication _updateCurrentStatusBarViewControllerAppearance] + 248
    frame #17: 0x30abed72 UIKit
    -[UIWindow _setHidden:forced:] + 234 frame #18: 0x30b28a30 UIKit-[UIWindow makeKeyAndVisible] + 60
    frame #19: 0x30b256c4 UIKit
    -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1820 frame #20: 0x30b1fca8 UIKit-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 720
    frame #21: 0x30abbc76 UIKit
    -[UIApplication handleEvent:withNewEvent:] + 3550 frame #22: 0x30abadd8 UIKit-[UIApplication sendEvent:] + 72
    frame #23: 0x30b1f3e4 UIKit
    _UIApplicationHandleEvent + 616 frame #24: 0x33128b54 GraphicsServices_PurpleEventCallback + 608
    frame #25: 0x3312873e GraphicsServices
    PurpleEventCallback + 34 frame #26: 0x2e24f806 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
    frame #27: 0x2e24f7a2 CoreFoundation
    __CFRunLoopDoSource1 + 346 frame #28: 0x2e24df6e CoreFoundation__CFRunLoopRun + 1406
    frame #29: 0x2e1b8728 CoreFoundation
    CFRunLoopRunSpecific + 524 frame #30: 0x2e1b850a CoreFoundationCFRunLoopRunInMode + 106
    frame #31: 0x30b1e60a UIKit
    -[UIApplication _run] + 762 frame #32: 0x30b19870 UIKitUIApplicationMain + 1136
    <ul>
    <li>frame #33: 0x000e5ed8 SpriteKitSimpleGame
    main(argc=1, argv=0x27d62c34) + 116 at main.m:16



我不明白为什么会崩溃。可能是什么原因?

UPD

我禁用了异常断点并得到了新的奇怪错误:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key snewRecordLabel.'



从 Storyboard UILabel中删除了 snewRecordLabel ,但这可能是错误的原因。如何删除?

最佳答案

snewRecordLabel的 Storyboard 中有一些连接,如果找到snewRecordLabel,则可以将 Storyboard 打开为简单的textedit并查看xml数据,否则 Storyboard 中必定会缺少链接。

关于xcode - 如何解决Xcode中的lldb错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24955793/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com