Reputation: 1
whenever i try and run my app it crashes and goes to this goes to my main.m file and
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
is highlighted in green and tells me "thread 1:signal SIGABRT and when i put an exception breakpoint it says "thread 1: breakpoint 1.1 How can i fix this problem so my app doesn't crash anymore?
and it gives me this at the bottom
argv char ** 0xbfffee18 0xbfffee18
argc int 1 1
when i add an exception breakpoint this is highlighted in green
0x15dd8b9: pushl %ebp
so is this
0x29df9b: xorl %eax, %eax
and this
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
how can i fix this so my app runs correctly? please help!
Upvotes: 0
Views: 1554
Reputation: 1
actually , its so easy if it shows an SIGBART error , it means any button is not given action correctlly or more than one action is given to a button, so the solutionis go to outlets inspecter and check the segues connected to the buttons , if you find more actions to single button , delete all of the actions and create a new fresh action to the button , that's it problem solved
Upvotes: -1
Reputation: 44
first of all it says why it crashes. also check if
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
is called. if is called - then it crashes in another place. for some reason it doesn't show actually where it crashed
Upvotes: 0