Swift: Thread 1 signal SIGABRT

前端 未结 7 1632
北恋
北恋 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: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.

提交回复
热议问题