Reputation: 39
Basically, I keep on getting this error when I run my app (even though there's no code in the ViewController.m). I don't see what could be causing it. Could someone please explain whats going on? Thanks.
Upvotes: 0
Views: 62
Reputation: 4378
edit - The actual answer is at the bottom, but my original answer does contain some helpful information for you, so I will leave it.
That is the line of code that is executed when the app is finished running, so from the information you've given alone, this could literally be any error that causes the app to crash.
Look down near the bottom, and you'll see a button that looks kind of like |>, right next to the blue breakpoint. If you press that a couple times, the debugging console will fill up with some text, which will tell us more about your error. My best guess is that you're getting an unspecified selector send to instance, which means you're trying to call a method that doesn't exist for the given object. This often means that an object is not set to the type that you think it is. Perhaps a view controller is still of type UIViewController, but you intended to set it as ViewController?
Show us more info about the error for more specific help.
edit - You accidentally added a breakpoint at that line, which is the blue bar at the edge of your text editor at the highlighted line. Click and drag the break point icon off of the text editor and it will disappear. Clicking on the edge of the text editor adds a breakpoint, which will pause your app whenever that line of code is executed.
Upvotes: 1
Reputation: 16864
Here i attach image show the exception break point please as per show image perform action and let me know what is the error going on.
Upvotes: 1