简体   繁体   English

xcode:运行模拟器时出现AppDelegate错误

[英]xcode: AppDelegate error when running the simulator

I'm new to xcode and I'm trying to create an app which uses an sqlite database to display some data but I get this line of code highlighted in AppDelegate.h when running the simulator. 我是xcode的新手,正在尝试创建一个使用sqlite数据库显示一些数据的应用程序,但是在运行模拟器时,我在AppDelegate.h中突出了这一行代码。

@autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}

I tried a few solutions from similar questions but I couldn't fix it. 我尝试了类似问题的一些解决方案,但无法解决。 any suggestions? 有什么建议么?

That's just a top level error you see when there is another problem. 这只是您在遇到其他问题时看到的顶级错误。 Check the console for a more detailed error message. 检查控制台以获取更详细的错误消息。

Alternatively, you can set Xcode to break on exceptions, which will probably help you isolate the source of the error. 另外,您可以将Xcode设置为在异常时中断,这可能会帮助您隔离错误源。

http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM