gpt4 book ai didi

iphone - 应用程序未能及时启动

转载 作者:太空狗 更新时间:2023-10-30 03:24:54 26 4
gpt4 key购买 nike

如何诊断此错误?

Application Specific Information:
MyApp failed to launch in time

Elapsed total CPU time (seconds): 4913.443 (user 3868.270, system 1045.173), 56% CPU
Elapsed application CPU time (seconds): 0.010, 0% CPU

Backtrace not available

Unknown thread crashed with unknown flavor: 5, state_count: 1

Binary Images:
0x2fe00000 - 0x2fe26fff dyld armv7 <a11905c8ef7906bf4b8910fc551f9dbb> /usr/lib/dyld

这是我的didFinishLaunching 方法:

#pragma mark -
#pragma mark Application lifecycle

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

if(getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled"))
{
NSLog(@"NSZombieEnabled/NSAutoreleaseFreedObjectCheckEnabled enabled!");
}

// Override point for customization after application launch.
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil];

//Check for connectivity
internetReach = [[Reachability reachabilityForInternetConnection] retain];
[internetReach startNotifer];
[self updateInterfaceWithReachability: internetReach];

[window addSubview:navigationController.view];
[window makeKeyAndVisible];

return YES;
}

最佳答案

您可能在 AppDelegate 的 application:didFinishLaunching 方法中进行了大量设置工作。

您应该确保此函数尽快退出。任何需要时间的设置工作(例如网络访问)都应该在您的应用程序中异步完成。在此过程中,您可以显示一个微调器以向用户指示应用程序正在加载。

关于iphone - 应用程序未能及时启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3908882/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com