So I’ve got my awesome app, that runs perfectly on simulator or while the device is plugged in.
And then if I create an IPA and deploy it on my device, or use TestFlight, or even submit to the App Store. The app will crash most of the time when I try launching it.
The crash reports even not symbolized don’t give me any information.
I’ve used TestFlight so that it could maybe help me figure out where the app crashes, but the app Crashes before TestFlight launches.
Here is some of my code (main.m):
#import <UIKit/UIKit.h>
#import "version3contentAppDelegate.h"
int main(int argc, char *argv[]) {
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([version3contentAppDelegate class]));
}
}
and beginning of version3contentAppDelegate.m:
#import "TestFlight.h"
#import "version3contentAppDelegate.h"
#import "RootTableViewController.h"
#import "AppsFeedTableViewController.h"
#import "AboutShmoopModalViewController.h"
@implementation version3contentAppDelegate
@synthesize window, shmoopCoreData, tabBarController;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSLog(@"applicationDidFinishLaunching");
[TestFlight takeOff:@"3f3618576288d96d598646d060a4f26a_NzUyMjEyMDEyLTAzLTI2IDE3OjIxOjQzLjgyNzQwNg"];
...
As you can see the TestFlight code is at the beginning of the didFinishLaunching. This means that if it would crash after that, I would have a crash report on TestFlight, which I don’t have.
Would anyone have any idea why this is happening ?
The project has been originally developed on an old xcode, for old iphone, currently its an xcode 3 project. But I’m programming it on XCode 4.3 with iOS 5.1 on devices.
As per your request, here is my comment:
It does get into didFinishLaunching if it shows the splash screen. I noticed you aren’t using ARC, though. Could it be that you are overreleasing something? Refactor your project and see if that helps