I tried to compile my first iOS Hello app.
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.
}
}
getting Build Succeeded
But after about 5 seconds, I got this
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)
I used to have this
I updated to this
Re-run and still happening ...
Re-run and still happening ...
What Does “Thread 1: Signal SIGABRT” Mean? The error SIGABRT stands for “signal abort”. It's a signal that's sent by iOS to a running app, that immediately quits the app because of a runtime error.
Use the exception breakpoint to gather extra information for the SIGABRT crash, and then disable it once you've solved the bug (until it's needed again).
A SIGABRT (signal abort) error means that the app was deliberately crashed due to some really bad problem, like a runtime error during the start-up sequence or a bad or unreadable user interface file.
Issue is in your labels, I am 100% sure you have deleted some outlet references and forget to remove the connection from story board. Please check
This problem happens when you delete referencing outlet in your ViewController
and forget to remove the connection from storyboard
.
Perfect connection ✅
The perfect referencing outlet looks like below screenshot.
Now let's delete the referencing outlet from
.h
file
Problem ⚠️
if we remove referencing outlet from .h
file Xcode will give warning in Storyboard. this is the trick you can find which outlet was deleted from the class.
i hope this will help you .
Solution
In your case you may have changed the name lable
to inputLable
so you need to do :
Remove the connection to label
.
Re-Connect the controller to inputLabel
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With