打开助手编辑器时,xcode崩溃

jfi*_*isk 0 xcode xcode4.3

有了新的Retina MacBook,它在使用xCode时表现不佳。如果我创建一个新项目,它将起作用,但是如果触发助手编辑器,它将冻结。如果我保存一个新项目并重新打开它,它将冻结。我确实安装了4.5 DP并卸载了它和xcode的最新非beta版本,问题仍然存在。有人知道这可能是什么问题吗?如果我创建一个新的用户帐户,xcode的行为正常。有人知道解决方法吗?崩溃太大,我无法发布。

Date/Time:       2012-06-30 03:10:29 -0700
OS Version:      10.7.4 (Build 11E2620)
Architecture:    x86_64
Report Version:  9

Command:         Xcode
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Version:         4.3.3 (1178)
Build Version:   3
Project Name:    IDEApplication
Source Version:  1178000000000000
App Item ID:     497799835
App External ID: 8553856
Parent:          launchd [111]

PID:             234
Event:           hang
Duration:        1.76s
Steps:           18 (100ms sampling interval)

Pageins:         44
Pageouts:        0


Process:         Xcode [234]
Path:            /Applications/Xcode.app/Contents/MacOS/Xcode
Architecture:    x86_64
UID:             501

  Thread 0x810        DispatchQueue 1
  User stack:
    18 ??? (in Xcode) [0x107b73eec]
      18 NSApplicationMain + 867 (in AppKit) [0x7fff85edf244]
        18 -[NSApplication run] + 555 (in AppKit) [0x7fff85c630c6]
          18 -[IDEApplication sendEvent:] + 366 (in IDEKit) [0x1085c2dd1]
            18 -[NSApplication sendEvent:] + 4282 (in AppKit) [0x7fff85ccc536]
              18 -[NSApplication _handleKeyEquivalent:] + 526 (in AppKit) [0x7fff85dd3175]
                18 -[NSMenu performKeyEquivalent:] + 281 (in AppKit) [0x7fff85dd4524]
                  18 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 125 (in AppKit) [0x7fff85e56932]
                    18 -[NSMenuItem _corePerformAction] + 399 (in AppKit) [0x7fff85e56bfb]
                      18 -[IDEApplication sendAction:to:from:] + 154 (in IDEKit) [0x1085c7096]
                        18 -[DVTApplication sendAction:to:from:] + 318 (in DVTKit) [0x107e76866]
                          18 -[NSApplication sendAction:to:from:] + 139 (in AppKit) [0x7fff85d69f7e]
                            18 -[NSObject performSelector:withObject:] + 61 (in CoreFoundation) [0x7fff8a15270d]
                              18 -[IDEWorkspaceTabController _changeToEditorMode:] + 361 (in IDEKit) [0x108728088]
                                18 _NSSetIntValueAndNotify + 259 (in Foundation) [0x7fff86f8353f]
                                  18 -[IDEEditorArea setEditorMode:] + 384 (in IDEKit) [0x108604a61]
                                    18 -[IDEEditorArea _refreshEditorContextsAndPreserveCurrentEditorHistoryStack:] + 642 (in IDEKit) [0x108604d8e]
                                      18 +[DVTLayoutView_ML _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] + 108 (in DVTKit) [0x107e858ec]
                                        18 +[DVTLayoutView_ML 
Run Code Online (Sandbox Code Playgroud)

Rad*_*che 7

对我来说,解决方案很简单:

  1. 关闭Xcode
  2. 从myProject.xcodeproj(如果使用cocoapods,则为.xcworkspace)中删除以下文件夹/文件(右键单击该文件,然后选择“显示包内容”)

    • / xcuserdata
    • /project.xcworkspace
  3. 重新打开Xcode并享受

崩溃是由于项目的用户数据内容损坏而发生的。

另外,您应注意,删除这些文件后,窗口大小和位置将重置,并且打开的选项卡将全部关闭。