I'm having an issue with my app, it keeps coming up with a Thread 1: signal SIGABRT error every time I build it. I've looked for a solution but nothing seems to work, any ideas? I'm new to this!
-
1Have you enabled a breakpoint? Do you have some code to share? – Magnas Jan 23 '20 at 21:23
-
Check your collectionview identifier is correct and also check that number of items in return correct value. Put a breakpoint in them function.. – chirag90 Jan 23 '20 at 21:33
-
Does this answer your question? [unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard](https://stackoverflow.com/questions/29282447/unable-to-dequeue-a-cell-with-identifier-cell-must-register-a-nib-or-a-class-f) – mfaani Jan 23 '20 at 21:48
-
1Do not show pictures of code (including console output). Copy it and paste it into the actual question, as _text_. Thanks. – matt Jan 23 '20 at 22:39
-
Show your UICollectionViewController code please. A question without the relevant code is pointless. Thanks. – matt Jan 23 '20 at 22:40
2 Answers
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. It essentially means your app has crashed…
there might be possible causes
Check Your Outlets:
- You created a new view controller in Interface Builder, and set it up with a few UI elements like buttons and labels
- You connected these UI elements to your code by using outlet properties, which creates a connection between a property of your view controller and the UI element in Interface Builder
- At one point you changed the name of the initial outlet property and your app started crashing with a SIGABRT error
Check The Stacktrace
if Xcode won’t show you any helpful error messages for a SIGABRT crash, try typing commands in the console area to debug such as help and bt:
bt is very useful to see the current call stack (also called “backtrace” or “stacktrace”).
Make An Exception Breakpoint
Here’s how you can set an exception breakpoint:
- Go to the Breakpoint navigator in Xcode, by using the tabs on the left
- Click on the bottom-left +-button and choose Exception Breakpoint
- Leave the default settings as-is (although they’re helpful to customize)
- Run your code
When an exception is thrown, execution of your app halts. You can now use the debugger to inspect values, step through the code, and use LLDB commands. When possible, Xcode will take you to the line of code that caused the exception.
- 539
- 4
- 15
Looks like you don't have a prototype cell in your collection view. This article might help you work through the issue.
Without looking at the code I'm guessing you should be able to go into the storyboard select the cell and add in the cell name using the inspector on the right.
- 730
- 5
- 23