项目运行时Xcode @autoreleasepool错误 [英] Xcode @autoreleasepool error on project Run

查看:151
本文介绍了项目运行时Xcode @autoreleasepool错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在使用phonegap(html5/js)构建的应用程序,并且突然出现了@autoreleasepool错误,而且我不是Xcode开发人员,所以不确定如何解决此问题.

I have an app that i'm building with phonegap (html5/js) and this @autoreleasepool error has appeared from nowhere all of a sudden and I'm not an xcode developer so unsure of how to fix this.

突出显示的代码是:

int main(int argc, char* argv[])
{
    @autoreleasepool {
        int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
        return retVal;
    }
}

我尝试根据其他线程的建议将自动引用计数"设置为否",但是,此操作无效.

I've tried turning Automatic Reference Counting to No as per suggestions from other threads, however, this isn't working.

有什么想法会导致这种情况吗?预先感谢!

Any ideas what could be causing this? Thanks in advance!

截屏: http://cl.ly/image/2x2g33371D3w

推荐答案

这不是错误.您不小心在main.m中的第13行上设置了一个断点.由于此行是注释,因此实际的断点将移至@autorelease语句.

This is not an error. You have accidentally set a breakpoint on line 13 in the main.m. Since this line is the comment, the actual breakpoint moves down to the @autorelease statement.

只需删除断点(抓住蓝色箭头并将其向右拖动),一切就可以了.

Just remove the breakpoint (grab the blue arrow and drag it to the right) and everything should be fine.

这篇关于项目运行时Xcode @autoreleasepool错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆