Swift: Thread 1 signal SIGABRT

前端 未结 7 1634
北恋
北恋 2021-02-08 18:11

After upgrading Xcode from 5 to 6 beta, almost every project gives me an unexpected error after running the application. There are some other posts with this title but the error

相关标签:
7条回答
  • 2021-02-08 18:29

    fix my problem:

    1. Go to deployment info and in "Main interface" select your correct storyboard...
    2. Rerun app.
    0 讨论(0)
  • 2021-02-08 18:31

    My issues with this started after I installed the legacy simulators (iOS7.1) under 'More Simulators' under the simulator build target. Xcode 6 and its native simulator had been running fine until then. What fixed it for me was to close Xcode, delete Derived Data, and under iOS Simulator in the simulator application choose "Reset Content and Settings" then restart the system.

    0 讨论(0)
  • 2021-02-08 18:34

    I found this issue happened when I linked @IBOutlet/@IBAction and the linkage broke (renaming for instance). In the main.storyboard inspector, right click (control click) on the elements and delete any bad linkages. Should fix the error if that's the issue.

    (Xcode 7)

    0 讨论(0)
  • 2021-02-08 18:43

    Seems like there was a bug with iOS 7.1 as target.

    Running tests on devices with iOS 7.1 installed now works. (17028705)

    Try it again with the beta 2 update

    0 讨论(0)
  • 2021-02-08 18:48

    I know there's already plenty of answers but just to note what happened in my case:

    I created the ViewController on the storyboard first and then I created the class, I don't know why this was an error because both class names where identical, but by rewriting the class name on the storyboard helped to "link" correctly the view controller and its file. First create file then ViewController on storyboard to prevent this error.

    0 讨论(0)
  • 2021-02-08 18:49

    This error is caused when you have 2 or more of the same IBOutlets or IBActions in your main.storyboard inspector (right arrow key at the very end of your options). Find out where there is double, and delete the one you don't need! It should work perfectly fine after that.

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