I am running an application and in the AppDelegate class I am getting the error Thread 1: signal SIGABRT on the line stating class AppDelegate: UIResponder, UIApplicat
Looks like you have a lingering connection to a no-longer-existent outlet. Perhaps you deleted a textField that you previously set up?
Ctrl-/right-click on the File's Owner in the Xcode editor, look for a warning triangle. Clear that out (by deleting the connection or re-connecting it to the proper outlet) and you'll likely be good.
There maybe another cause here: you made a Outlet and then you changed its name or add another Outlet using a new name.
You can check it by this way:
click on the Label or Button element you put in the Storyboard, look at the right side bar, find "Show the connections inspector" then you can find its connection.
If you just made some mistakes with the connections, it will show you here.
For me, I created two connections with one Outlet, that's why I kept getting the error. After I removed one of the wrong conection, it compiled successfully.
In Main.storyboard
I selected my Text Field, then on the far right I have my Utilities
showing and selected Show the Connections inspector
. There in the Referencing Outlets
section I had two connections selected:
number-View Controller
and enterText-View Controller
.I simply selected the x
marker on my enterText-View Controller
to delete it (because in my case I only wanted a number selection) and that fixed this problem for my case.