Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift: Thread 1 signal SIGABRT

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 is different.

In AppDelegate.swift, sometimes the simulator goes completely black, without the error, sometimes it gives me the error on this line:

class AppDelegate: UIResponder, UIApplicationDelegate { 

In Xcode 5 I didn't had this error before, with Deployment Target set to 7.0 or 7.1.

Thanks in advance.

like image 904
perte Avatar asked Jun 13 '14 11:06

perte


People also ask

What does thread 1 signal SIGABRT mean?

What Does “Thread 1: Signal SIGABRT” Mean? The error SIGABRT stands for “signal abort”. It's a signal that's sent by iOS to a running app, that immediately quits the app because of a runtime error.

How do you resolve a SIGABRT?

For example, an exception breakpoint will get triggered by an Unsatisfied constraints exception, but that won't crash your app. Use the exception breakpoint to gather extra information for the SIGABRT crash, and then disable it once you've solved the bug (until it's needed again).

Why does SIGABRT happen?

The SIGABRT signal is raised when the abort function is called or when a user ABEND occurs. SIGABRT may not be raised for an ABEND issued by the SAS/C library, depending on the severity of the problem. By default, SIGABRT causes abnormal program termination.

What is a SIGABRT error?

A SIGABRT (signal abort) error means that the app was deliberately crashed due to some really bad problem, like a runtime error during the start-up sequence or a bad or unreadable user interface file.


2 Answers

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.

like image 50
Brennan Hamstra Avatar answered Sep 25 '22 09:09

Brennan Hamstra


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

like image 25
femot Avatar answered Sep 22 '22 09:09

femot