I've just a crash report appear in iTunes Connect, so I've loaded it into Xcode, which symbolicated it for me.
The relevant portion is:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x323e188f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x34437259 objc_exception_throw + 33
2 CoreFoundation 0x323e1789 +[NSException raise:format:] + 1
3 CoreFoundation 0x323e17ab +[NSException raise:format:] + 35
4 Bitrate Tester 0x00048435 0x0001a435
5 Bitrate Tester 0x00031473 -[FirstViewController viewDidLoad] (FirstViewController.m:27)
FirstViewController, is, not surprisingly, the first view controller my app shows, meaning that [FirstViewController viewDidLoad]
is basically the first actual method called in my app. Therefore there isn't much potential for something being wrong called before.
Now, this is how viewDidLoad
looks:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
DefaultSHKConfigurator *configurator = [[MySHKConfigurator alloc] init];
[SHKConfiguration sharedInstanceWithConfigurator:configurator];
[SHK setFavorites:[NSArray arrayWithObjects:@"SHKFacebook",@"SHKTwitter",@"SHKMail",nil] forType:SHKShareTypeText];
}
Line 27 is
[SHKConfiguration sharedInstanceWithConfigurator:configurator];
So, is ShareKit causing a crash in my app?? Note that I have not been able to reproduce the issue on any of my devices (I tested in the iOS Simulator, my iPhone 4 on iOS 5.1.1, an iPad 2 on iOS 5.1.1, and an iPhone 3GS on iOS 5.1.1). Any thoughts?