2013-03-12 26 views
3

我将TestFlight SDK集成到iOS应用程序中。在iOS 6.1.2中,有时该应用会在TestFlight的-takeOff:方法中第一次启动应用时崩溃。iOS 6.1.2中的[TestFlight takeOff:@“”]应用程序崩溃

- (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; 
} 

任何帮助,非常感谢。

谢谢

+0

随意展现起飞方法以及:) – 2013-03-12 10:49:16

+0

你能提供任何错误输出? – iDroid 2013-03-12 10:49:17

+0

这是您刚发布的TestFlight密钥吗? – 2013-03-12 10:52:22

回答

5

这是Testflight SDK中的一个错误。他们要求您更新到最新的测试版。

iOS exception EXC_GUARD

+0

谢谢。有效。通过更新到TestFlight SDK 1.2来解决崩溃问题 – srinivas 2013-03-13 06:22:04

0

难道是你忘了正确包含TestFlight SDK文件夹吗?

+0

检查并看起来不错。它仅在iOS 6.1.2和第一次启动时才会崩溃。 – srinivas 2013-03-12 11:06:27