ios - 线程 1 : signal SIGABRT AppDelegate. swift

标签 ios swift

我尝试编译我的第一个 iOS Hello 应用。

我有

ViewController.swift

//
//  ViewController.swift
//  My First Project

import UIKit

class ViewController: UIViewController {

    // Declare components
    @IBOutlet weak var inputLabel: UILabel!
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        
    }

    @IBAction func submitBtn(_ sender: Any) {
        inputLabel.text = "Hello World"
        
    }
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

我保留

获取构建成功

enter image description here

但大约 5 秒后,我得到了这个

enter image description here


控制台错误

enter image description here

         0x0000000103915f69 -[UIApplication workspaceDidEndTransaction:] + 188
    18  FrontBoardServices                  0x000000010770f723 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    19  FrontBoardServices                  0x000000010770f59c -[FBSSerialQueue _performNext] + 189
    20  FrontBoardServices                  0x000000010770f925 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    21  CoreFoundation                      0x0000000105ff0311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    22  CoreFoundation                      0x0000000105fd559c __CFRunLoopDoSources0 + 556
    23  CoreFoundation                      0x0000000105fd4a86 __CFRunLoopRun + 918
    24  CoreFoundation                      0x0000000105fd4494 CFRunLoopRunSpecific + 420
    25  UIKit                               0x00000001039147e6 -[UIApplication _run] + 434
    26  UIKit                               0x000000010391a964 UIApplicationMain + 159
    27  My First Project                    0x0000000102e6db3f main + 111
    28  libdyld.dylib                       0x0000000106f7868d start + 1
    29  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

尝试#1

连接检查器

我曾经有过这个

enter image description here

我更新到这个

enter image description here

重新运行并仍在发生......


尝试#2

清理项目

重新运行并仍在发生......

最佳答案

问题出在你的标签上,我 100% 确定你已经删除了一些导出引用,忘记从 Storyboard上删除连接。请检查

关于ios - 线程 1 : signal SIGABRT AppDelegate. swift ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44439343/

相关文章:

ios - 从 NSErrorPointer 获取可读信息

ios - UICollectionView 单元格之间的活力效果

iphone - 无法使用自定义 View 触发条形按钮项目?

iphone - 向 UIScrollview 添加 View

iOS 提取证书身份 : EXC_BAD_ACCESS

ios - NSURLDomainError 1005 "The Network Connection Was Lost"

ios - 如何使用 ARkit 在增强现实应用程序中关闭/打开 AR?

ios - 尽管尝试了官方 SO 答案的所有方法,但我找不到我的 .realm 文件

Xcode NSTimer 计数++

ios - 快速按字母顺序加载联系人列表