当我在Xcode中运行我的应用程序时,有时(大约50%的时间)在它开始运行之前会挂起大约12秒。 applicationDidFinishLaunching正常发生并显示应用程序屏幕,但Xcode不会将控制权传递给它大约12秒。您可以在Youtube上看到此行为 https://www.youtube.com/watch?v=8RNgUnZMaAM
有没有人经历过这样的事情,或者知道它可能是由什么引起的。我在OS X 10.10.1上运行Xcode 6.3.1。
我已经在控制台中查看,唯一的区别在于什么时候工作是以下输出,当事情不起作用时我会得到。
6/5/15 8:08:14.006 PM Xcode[1122]: [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-7703/IDEKit/Workspace/IDEToolbarStopButtonViewController.m:259
Details: Stop Button failed to cancel tracker:
<IDEExecutionOperationTracker 0x7fc44f6a7e40 Run "Start" isFinished: YES>
canceled: Hard Cancel
<IDEExecutionRunnableTracker 0x7fc44f4bd7e0 (null) isFinished: YES>
canceled: Hard Cancel
is _finishedRunning
operationFinished: YES
<DVTOperationGroup 0x7fc452915600 not blocking> suboperations:
<IDEBuildOperationGroup 0x7fc452b9d9d0 not blocking> suboperations:
<IDEBuildOperation 0x7fc44b701570 not blocking>
<DVTOperation 0x7fc452b99e40 not blocking>
<DVTOperationGroup 0x7fc452ac8d60 not blocking> suboperations:
<DVTOperationGroup 0x7fc44dcf09d0 not blocking> suboperations:
<DVTOperation 0x7fc44f6a3680 not blocking>
<IDERunOperation 0x7fc44f4049e0 not blocking>
<IDESchemeActionResultOperation 0x7fc44f46c810 not blocking>
<DVTOperation 0x7fc44f6a9120 not blocking>
Object: <IDEToolbarStopButtonViewController: 0x7fc44b7de8a0>
Method: -_stopLaunchSession:
Thread: <NSThread: 0x7fc44b503200>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.