Alan
Alan

Reputation: 9471

SIGABRT on Startup in Simulator

I was just running my code on the simulator which has been working in the past. The only thing I've really done for the startup code is setting user defaults

 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:
                             @"Automatic", @"userType",
                             @"NO", @"autoRefresh",
                             @"60", @"refreshInt", nil
                            ];

[defaults registerDefaults:appDefaults];
[defaults synchronize];

I ran the app 10 times on my iPhone/iPad and experienced no crashing on startup. However, if I run it on the iPhone/iPad Simulator, the iPhone simulator crashes with SIGABRT basically every other time. I am not sure what's causing this as I've already restarted my computer and did a "Reset all Contents and settings" on the simulator.

Thanks! Alan

Upvotes: 2

Views: 705

Answers (2)

faffaffaff
faffaffaff

Reputation: 3539

If you are running Xcode 4.6.2 on OSX 10.8.4, try upgrading to Xcode 4.6.3 which was just released a few days ago. The 4.6.3 version has fixes for the random crashes and hangs that sometimes happens when debugging on the ios simulator.

Upvotes: 3

Bryce Buchanan
Bryce Buchanan

Reputation: 279

This seems to be a bug in the lldb in chord with the newest version of Moutain Lion. If you want to avoid this switch to using GDB

Upvotes: 0

Related Questions