最近几天我一直在开发我的应用,并且一直可以模拟运行。今天我编译并运行,没有出现任何错误或警告,但是在 XCode 底部有一个消息提示:
> Error From Debugger: Failed to launch
> simulated application: iOS Simulator
> failed to install application
这是在尝试"构建并运行"之后弹出的内部错误窗口,
我在互联网上寻求帮助,尝试手动删除构建文件夹、清理和构建,并最近完全重新安装了XCode和整个SDK。文件: /SourceCache/IndigoDebuggingPlugin/IndigoDebuggingPlugin-44/iPhoneSimulatorDevice/XCiPhoneSimulatorDevice.m 行号: 341 对象: 方法: _launchSimulatedExecutable:
断言失败: nil == _currentSimulatorSession
当关闭打开此项目的XCode时,还会给我这个错误消息:
无法关闭项目
原因:在 /SourceCache/iPhoneSimulatorRemoteClient/iPhoneSimulatorRemoteClient-18/Source/DTiPhoneSimulatorSession.m:147 中的ASSERTION FAILURE 细节:requestEndWithTimeout: 在失败的会话上调用。对象:
方法:-requestEndWithTimeout: 线程:{name = (null), num = 1} Backtrace: 0 0x00043888 -[DTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsFoundation) 1 0x00043518 _DTAssertionFailureHandler (in DevToolsFoundation) 2 0x1e06f807 -[DTiPhoneSimulatorSession requestEndWithTimeout:] (in iPhoneSimulatorRemoteClient) 3 0x1d8a5ca9 4 0x00826b95 -[PBXDebugSessionModule stopLaunchSession] (in DevToolsInterface) 5 0x008243c8 -[PBXDebugSessionModule closeModule] (in DevToolsInterface) 6 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 7 0x0077f6ea -[PBXModule closeModule] (in DevToolsInterface) 8 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 9 0x0077f6ea -[PBXModule closeModule] (in DevToolsInterface) 10 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 11 0x0099a188 -[XCPerspectivesSpecification closeAllModules] (in DevToolsInterface) 12 0x9973017d -[NSArray makeObjectsPerformSelector:] (in CoreFoundation) 13 0x0076468e -[PBXProjectDocument mainModuleShouldClose:] (in DevToolsInterface) 14 0x00998bf6 -[XCPerspectiveModule windowShouldClose:] (in DevToolsInterface) 15 0x000099a1 16 0x00007297 17 0x95b8d522 -[NSApplication _docController:shouldTerminate:] (in AppKit) 18 0x95b8d048 -[NSDocumentController(NSInternal) _continueTerminationHavingClosedAllDocuments:context:] (in AppKit) 19 0x95b8ce26 -[NSDocumentController(NSInternal) _shouldTerminateWithDelegate:shouldTerminateSelector:] (in AppKit) 20 0x95b8c6ff -[NSApplication _shouldTerminate] (in AppKit) 21 0x95b8c271 -[NSApplication te
我不知道下一步该做什么,希望能得到帮助。