如何使用我的应用程序修复此SIGABRT错误? [英] How can I fix this SIGABRT error with my app?

查看:55
本文介绍了如何使用我的应用程序修复此SIGABRT错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为iPhone使用Xcode 4开发一个应用程序,并且遇到了以下错误线程1:程序接收到的信号:SIGABRT",该错误在我的main.m代码中.

I am currently developing an app in Xcode 4 for the IPhone and I have com across this error, "Thread 1: Program Received Signal: SIGABRT", This error is in my main.m code.

//
//  main.m
//  MyCard
//
//  Created by Nazar Gren on 2/2/12.
//  Copyright (c) 2012 Nazar Gren. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "mycardAppDelegate.h"

int main(int argc, char *argv[])
{
     @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([mycardAppDelegate         class]));
     }
 }

我的错误出现在@autorelease池行下的行中.在调试器中,我收到以下消息:这通常意味着该进程的另一个实例已在运行或挂在调试器中."而且仅当我尝试调试应用程序时才会发生此错误.我的应用程序甚至无法运行.有人可以帮忙吗?这将不胜感激.

My error appears on the line under the @autorelease pool line. In the debugger, I get this message, "This generally means that another instance of this process was already running or is hung in the debugger." And this error only occurs when I attempt to debug my app. My app doesn't even run. Can anyone help? It would be greatly appreciated.

推荐答案

如果这是在模拟器上发生的,请重新启动计算机.如果在实际设备上发生这种情况,请重新启动设备,如果问题仍然存在,请同时重新启动计算机.我的问题已经多次发生,这是因为意外中止测试时设备/模拟器上留下了僵化的进程.只需重新启动即可解决该问题.

If this is happening on the simulator, restart your computer. If this is happening on a real device, restart the device, and if the problem persists, restart the computer as well. This problem has occurred for me multiple times, because of a zombified process left on the device/simulator when a test is unexpectedly aborted. A simple reboot will fix it.

这篇关于如何使用我的应用程序修复此SIGABRT错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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