gpt4 book ai didi

ios - 线程 1 : signal SIGABRT AppDelegate. swift

转载 作者:IT王子 更新时间:2023-10-29 05:29:22 25 4
gpt4 key购买 nike

我尝试编译我的第一个 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/

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