Thread 1: signal SIGABRT Xcode 6.1

前端 未结 3 1543
无人及你
无人及你 2020-12-21 21:16

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

相关标签:
3条回答
  • 2020-12-21 21:32

    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.

    enter image description here

    0 讨论(0)
  • 2020-12-21 21:40

    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.

    0 讨论(0)
  • 2020-12-21 21:48

    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:

    • a number-View Controller and
    • a 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.

    0 讨论(0)
提交回复
热议问题