srinivas
srinivas

Reputation: 55

App crashes on [TestFlight takeOff:@""] in iOS 6.1.2

I have TestFlight SDK integrated into my iOS app. In iOS 6.1.2, sometimes the app crashes for the first-time app launch at TestFlight's -takeOff: method.

  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:  (NSDictionary *)launchOptions
{

#ifdef TESTING
    [TestFlight takeOff:@"MY_TESTFLIGHT_TEAM_TOKEN"];
    [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]];
#endif

// Override point for customization after application launch.
ProductListViewController *products=[[ProductListViewController alloc] initWithNibName:@"ProductListViewController" bundle:nil];
UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:products];
[products release];

navigationController.toolbarHidden = YES;
navigationController.navigationBarHidden = YES;

self.rootViewController = navigationController;
[self.window setRootViewController:rootViewController];

[navigationController release];

[self.window makeKeyAndVisible];

return YES;
}

Any help is greatly appreciated.

Thanks

Upvotes: 3

Views: 1266

Answers (2)

Kerni
Kerni

Reputation: 15329

This is a bug in the Testflight SDK. They ask you to update to the latest beta version.

See iOS exception EXC_GUARD

Upvotes: 5

nevan king
nevan king

Reputation: 113747

Could it be that you've forgotten to include the TestFlight SDK folder properly?

Upvotes: 0

Related Questions