Reputation: 142
import UIKit
class LoginViewController: UIViewController {
@IBAction func btnActionLogin(_ sender: Any?) {
print("Why is this error?")
}
}
After connecting the button to my view controller, when I tap the button, the app keeps crashing with an Error: (Thread 1: signal SIGABRT)
Why? I am just connecting the button from the storyboard to the code like normal..
Upvotes: 0
Views: 117
Reputation: 100503
Make sure the Module part is not None and set to your target name in addition to class set to Your custom class name
Upvotes: 2
Reputation: 609
Please look at this link : Swift error : signal SIGABRT how to solve it
and follow second answer. Suspecting you have connected another action or so and might have deleted it by mistake.
Upvotes: 0