So, I have my wonderful app that works great on a simulator or while the device is connected.
And then, if I create an IPA and distribute it on my device, either use TestFlight, or even send it to the App Store. The application will crash most of the time when I try to run it.
Failure reports, not even indicated, do not give me any information.
I used TestFlight so that it can help me figure out where the application crashes, but the application crashes before running TestFlight.
Here is 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 the 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 file. This means that if after this a failure occurs, I will have a crash report in TestFlight, which I do not have.
Can anyone understand why this is happening? The project was originally developed on the old xcode, for the old iphone, currently it is an xcode 3 project. But I am programming it on Xcode 4.3 with iOS 5.1 on devices.