1

Hi I am working on an app witch worked great yesterday and when I re opened the project today and launched it on the simulator, my app crashed with no error message, how could I find out where the problem comes from? I added a screenshot of when my app craches. Please note that I have seen some similar questions on here that did not solve my problemthis is the screenshot of when my app crashes

stephen D
  • 255
  • 1
  • 5
  • 16

3 Answers3

2

Two suggestions to try and track down the source of the crash:

Try the two debugging steps separately (first enable Exception Breakpoint then enable Zombie Objects.)
Have you also tried cleaning the project and deleting/re-installing app from Simulator?

Community
  • 1
  • 1
race_carr
  • 1,387
  • 12
  • 21
  • Thanks for your answer , I have just tried all of the above and it doesn't seem to have changed anything, when I select Diagnostics tab. And mark Enable Zombie Objects the box says it is in obj-c and I am in swift , could this be part of the problem? – stephen D Aug 29 '15 at 17:15
  • My bad. I don't believe Zombie Objects works in Swift. Did you possibly make any modifications to your main view controller in the StoryBoard? Try adding a breakpoint in `viewDidLoad()` for the main view controller to see if the app is even getting there – race_carr Aug 29 '15 at 17:23
  • I dont think I made any modifications to the main view, and I tried the breakpoint and it doesn't get there – stephen D Aug 29 '15 at 18:05
1

Make sure that the action handlers are properly linked up to your objects in MainStoryboard. e.i. if you look at your ViewController and find your object definition

@IBOutlet weak var sampleTextBox: UILabel!

It should have a circle to the left of this line of code. These circles should be filled in if everything is properly connected. If you see empty circles then these lines are not connected to objects properly. You will need to reconnect these lines to the Objects in the Storyboard by right clicking on the circle and dragging to the object in question.

1

Ok so after doing some research I realized that the "signal SIGABRT" was a connection problem so I went to the main storyboard, and to the connections inspector and I had some connections with a "!" so I deleted them and the app works great again ! I suspect it was because of some connections I deleted by error and reconnected either way if your having this issue be sure to check the connections inspector and delete all connections with a "!"

stephen D
  • 255
  • 1
  • 5
  • 16