how do i fix the sigabrt error?

Hello,

I'm new in IOS programming and I need your help.


When I start my app (Single View Application) in the ios-simulator I become this error:


Thread 1: signal SIGABRT

terminating with uncaught exception of type NSException

code in main.m file:

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char * argv[]) {

@autoreleasepool {

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); Here is the error

}

}


I dont understand this error.

Thank you for your help.

Answered by bob133 in 43990022

I think I've figured it out: you said you use a storyboard, but your app is trying to load a nib. That's why it's getting so confused. What you need to do is tell your app that it's supposed to look for a storyboard, not a nib. Here's how:


• Select your project file in the Project Navigator

• In the sidebar with "Projects" and "Targets," select your app under "Targets"

• Click the Info tab

• Expand "Custom iOS target properties" if necessary

• Look for something like "Main nib file base name." If you see it, click it and change it to "Main storyboard file base name."

• Make sure the name to the right matches the name of your storyboard file

• Now build and run.


Hopefully this will clear up the problem. 😉


To recap, an app crashes with the SIGABRT error whenever an exception (a fatal error) is raised and no recovery is possible, such as during the start-up sequence, where any problem is critical.

OK, so you accidentally added a "breakpoint" to your app at that point, so when your code reaches that point, it screeches to a halt so you can slowly step through your code and watch it run. It's kind of cool, but I understand your confusion since you didn't understand what you did.


Need any more help?

Not now, when I need help again, I will ask you.


Thanks

All right. Good luck with your app! 🙂


If you need more help, please start another thread.

I had a similar problem with GameScene.sks. I upgraded to Xcode 8 and my project no longer displayed the GameScene. The problem was resolved by resetting the orientation in the GameScene.sks file properties. This took me ages to discover so I hope this info helps.

how do i fix the sigabrt error?
 
 
Q