Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 任何模拟器崩溃后都需要重新启动XCode_Ios_Xcode_Crash - Fatal编程技术网

Ios 任何模拟器崩溃后都需要重新启动XCode

Ios 任何模拟器崩溃后都需要重新启动XCode,ios,xcode,crash,Ios,Xcode,Crash,就在最近,我开始在XCode上遇到很多麻烦。每当我在模拟器上运行我的应用程序时,它就会崩溃(抛出异常或其他东西),下一次我运行它时,模拟器就会崩溃,即使在我撤消导致最初崩溃的代码之后也是如此 例如,在init方法中,我调用 self = [super init]; return self; 我可以运行它一百次,每次运行都很好。但如果我打电话 self = [super init]; [super wrlgnqelrguqrngouqerngerg]; return self; 然后

就在最近,我开始在XCode上遇到很多麻烦。每当我在模拟器上运行我的应用程序时,它就会崩溃(抛出异常或其他东西),下一次我运行它时,模拟器就会崩溃,即使在我撤消导致最初崩溃的代码之后也是如此

例如,在init方法中,我调用

 self = [super init];
 return self;
我可以运行它一百次,每次运行都很好。但如果我打电话

 self = [super init];
 [super wrlgnqelrguqrngouqerngerg];
 return self;
然后它崩溃了,这是应该的。但是如果我撤销随机消息调用,那么它再次

 self = [super init];
 return self;
我再次在模拟器上运行它,它崩溃了!即使我解开了导致崩溃的代码。当我单击run时,它会显示XCode internal error,当我单击show details时,它会显示以下内容:

ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-303/Framework/Classes/Workspace/IDEWorkspaceTabController.m:2327
Details:  Assertion failed: [suppressionTargetValue isEqualToString:_kUserDefaults_IDESuppressStopExecutionWarningTargetValue_Add]
Object:   <IDEWorkspaceTabController: 0x201759bc0>
Method:   -_showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:
Thread:   <NSThread: 0x2000217a0>{name = (null), num = 1}
Hints:   None
Backtrace:
  0  0x0000000100949773 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
  1  0x000000010006d394 _DVTAssertionFailureHandler (in DVTFoundation)
  2  0x0000000100931e02 -[IDEWorkspaceTabController _showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:] (in IDEKit)
  3  0x00000001008e830b -[IDEWorkspaceTabController _performContextTask:command:commandName:] (in IDEKit)
  4  0x00007fff81fd7e9a -[NSApplication sendAction:to:from:] (in AppKit)
  5  0x00000001001cf63c -[DVTApplication sendAction:to:from:] (in DVTKit)
  6  0x000000010085b656 -[IDEApplication sendAction:to:from:] (in IDEKit)
  7  0x00007fff81fd7e9a -[NSApplication sendAction:to:from:] (in AppKit)
  8  0x00000001001cf63c -[DVTApplication sendAction:to:from:] (in DVTKit)
  9  0x000000010085b656 -[IDEApplication sendAction:to:from:] (in IDEKit)
 10  0x000000010031b9f3 -[DVTDelayedMenuButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in DVTKit)
 11  0x00007fff82062215 -[NSControl mouseDown:] (in AppKit)
 12  0x00007fff81f7c34f -[NSWindow sendEvent:] (in AppKit)
 13  0x00007fff81eb1a86 -[NSApplication sendEvent:] (in AppKit)
 14  0x000000010085b36e -[IDEApplication sendEvent:] (in IDEKit)
 15  0x00007fff81e484da -[NSApplication run] (in AppKit)
 16  0x00007fff81e411a8 NSApplicationMain (in AppKit)
 17  0x0000000100000eec
 18  0x0000000000000002

我已尝试重新安装XCode。没用

您是否尝试过清除iOS模拟器的内容?转到iOS模拟器>清除所有内容

然后在xCode中清理您的项目(可在build菜单中找到)(然后可能尝试另一个iOSSDK)。
然后运行它。它应该已经工作了,如果没有重复清理/清理并重新启动mac

我通过删除首选项文件解决了这个问题。清理项目和模拟器不起作用。我在username/library/preferences中找到了该文件。它被称为com.apple.Xcode.plist。还有一些其他文件的名字中有Xcode。我删除了所有三个,重新启动了XCode,一切正常。我使用的是XCode 4。

您使用的是Beta吗?提交一个bug。即使你不是,你也可以向苹果公司提交一个bug
Couldn't register NI.nipod-app-final with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.