I have a to do list app.
When i click save button, connected to unwindToTableView:, the app crashes giving an error "Thread 1: signal SIGABRT".
Tried seing many forum questions nothing helped.
Thanks For Your help.
We should have a canned answer to this question:
The SIGABRT only indicates that the app called abort() — that is, crashed deliberately. This can happen as a result of an error unwrapping a Swift optional (which can be an unconnected outlet), but there are plenty of other possibilities).
The SIGABRT is always preceded, in the console log, by an error message that says what the actual error is. From there, the correct strategy is to use the debugger to stop and see the backtrace (call stack) at the time of the error. Note that in Xcode 9.2 and later, if the reason is a Swift-specific error such as a nil optional, Xcode will show the actual error message on the appropriate source code line when it stops. For crashes resulting from an Obj-C exception, the correct approach is to add an exception breakpoint in Xcode before running the app.