Ios 应用程序在启动时崩溃

Ios 应用程序在启动时崩溃,ios,objective-c,iphone,crash,crash-reports,Ios,Objective C,Iphone,Crash,Crash Reports,我的应用程序在启动时崩溃&这只发生在我从设备构建和运行时,因为通过Xcode它工作正常 这是我的事故记录 我知道发生这种情况是因为我的应用程序没有及时加载&iOS会停止加载,因为加载时间超过了允许的时间限制 从崩溃日志中我了解到这是由于ImageLoader造成的,但我并没有在启动时执行任何重载 以下是我的发布方法: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictiona

我的应用程序在启动时崩溃&这只发生在我从设备构建和运行时,因为通过Xcode它工作正常

这是我的事故记录

我知道发生这种情况是因为我的应用程序没有及时加载&iOS会停止加载,因为加载时间超过了允许的时间限制

从崩溃日志中我了解到这是由于ImageLoader造成的,但我并没有在启动时执行任何重载

以下是我的发布方法:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    [[UINavigationBar appearance] setTranslucent:NO];
    [[UINavigationBar appearance] setTintColor:kUIColorWhite];
    [[UINavigationBar appearance] setBarTintColor:kUIColorGreenTheme];
    NSDictionary *textTitleOptions = [NSDictionary dictionaryWithObjectsAndKeys:kUIColorWhite,NSForegroundColorAttributeName, nil];
    [[UINavigationBar appearance] setTitleTextAttributes:textTitleOptions];

    [self startRechabilityMonitoring];

    // Create Reports database & tables if not exist
    [[SPDBManager sharedInstance] checkAndCreateDatabase];
    [[SPDBManager sharedInstance] createTables];
    return YES;
}

非常感谢您的帮助。

刚刚把它修好

这是Xcode 7的一个新特性,在编辑方案中被称为“地址消毒器”。 当您不运行Xcode时,应该禁用该选项


从这里得到了我的答案:

“通过Xcode工作正常”意味着Xcode模拟器?不,当通过Xcode在设备上运行时。