XCode 4.2.1在启动时在Lion 10.7.2上崩溃 [英] XCode 4.2.1 Crashes on Lion 10.7.2 on Launch

查看:256
本文介绍了XCode 4.2.1在启动时在Lion 10.7.2上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个星期我在大约10年买了第一台Mac(是的!)。它是一个使用的Mac Pro(2x2GHz双核至强与2GB RAM)。它有一个全新安装的Mac OS X Lion 10.7.2。我只安装了OmniOutlner Pro,Textmate和Ruby RVM。



我也从App Store下载并安装了Xcode 4.2.1。首先,Xcode工作正常(只启动,看看是否工作)。然后,第二天我推出Xcode开始使用它,它在发布后立即崩溃。从那时起,我已经尝试了很多东西来尝试纠正这个问题:重新启动,重新安装,重新下载和重新安装,删除和重新安装,删除iTunes和重新安装(早期Stack Overflow的答案建议这一点)等等。没有什么似乎有帮助。有时候我可以在XCode中点击一个菜单项(正在显示崩溃消息),但是就是这样。



一切似乎工作完美这台机器,所以我怀疑是硬件。我没有OS X安装DVD。



我买了这个系统,所以我可以在Xcode中编程。

UPDTE-1 :这是第一个线路从问题详细信息和系统配置报告(一般来说,似乎大多数我已经查看了这个问题似乎在谈论IDE导航器日志):

 过程:Xcode [17619] 
路径:/Developer/Applications/Xcode.app/Contents/MacOS/Xcode
标识符:com.apple.dt.Xcode
版本:4.2.1(834)
构建信息:IDEApplication-834000000000000〜2
代码类型:X86-64(Native)
父进程:launchd [118]

日期/时间:2011-12-01 14:33:14.664 -0600
操作系统版本:Mac OS X 10.7.2(11C74)
报告版本:9

自上次报告以来的间隔:72258秒
自上次报告以来的崩溃
自上次报告以来的每个应用程序间隔:719秒
自上次报告以来的每个应用程序崩溃$ 5
匿名UUID:1D22E753-40F6-4035-B53A-236881ED2A58

坠毁主题:0调度队列:com.apple.main线程

异常类型:EXC_CRASH(SIGABRT)
异常代码:0x0000000000000000,0x0000000000000000

特定于应用程序的信息:
ProductBuildVersion:4D502
遇到多个断言。第一个断言是:ASSUTION FAILURE in /SourceCache/IDELogNavigator/IDELogNavigator-820/IDELogNavigator.m:582
详细信息:(self.rootNavigableItem)不应该为nil。
对象:< IDELogNavigator:0x4018f6420>
法:-revertStateWithDictionary:
主题:其中,NSThread:0x40010a260> {名=(空),NUM = 1}
提示:
0:更换视图安装:其中; IDELogNavigator:0x4018f6420表示:< DVTExtension 0x400d33120:日志导航器(Xcode.IDEKit.Navigator.Logs)v0.1>
回溯:
0 0x00000001055c4366 - [IDEAssertionHandler handleFailureInMethod:对象:文件名:行号:messageFormat:参数:](以IDEKit)
1 0x0000000104c3d1a4 _DVTAssertionFailureHandler(以DVTFoundation)
2 0x000000010ad43cb1 - [IDELogNavigator revertStateWithDictionary:](以IDELogNavigator)
3 0x0000000104bffe5b - [DVTStateToken _pullStateFromDictionary:](以DVTFoundation)
4 0x0000000104bffc12 - [DVTStateToken pullStateFromRepository](在DVTFoundation)
5 0x000000010550f33d - [IDENavigatorArea replacementView :didInstallViewController:](以IDEKit)
6 0x0000000104df75f1 __42- [DVTReplacementView _setupViewController] _block_invoke_0(以DVTKit)
7 0x0000000104c00f4e DVTInvokeWithFailureHint(以DVTFoundation)
8 0x0000000104df7473 - [DVTReplacementView _setupViewController](在DVTKit )
9 0x0000000104df7345 - [DVTReplacementView installedViewController](在DVTKit)






UPDATE-2: Bummer。我试着迈克尔·达特曼引用下面的方法,但它没有工作。以下是我在Terminal中输入的内容:

  sudo tmutil disablelocal 
sudo / Developer / Library / uninstall-devtools --mode = all
sudo / Developer-old / Library / uninstall-devtools --mode = all
sudo / Developer-old-1 / Library / uninstall-devtools --mode = all
sudo tmutil enablelocal

此时,/ Developer,/ Developer-old和/ Developer-old-1文件夹已删除。然后我清空垃圾桶并重新安装XCode。一切似乎都很好,但是当我启动XCode,它立即崩溃: - (



但是,另外三个信息:


  1. 当XCode崩溃时问题报告中的问题详细信息与上面报告的问题详细信息基本相同。


  2. 安装的XCode的版本是XCode 4.2.1 Build 4D502,如果这很重要。


  3. 注意到如果我在内部错误崩溃对话框中点击继续大约15次,XCode变得可用于探索菜单等点,并且似乎只是出现内部错误崩溃对话框,如果我试图退出。


如果任何人有任何其他想法,我可以尝试他们。我有一个硬件问题,或者如果我应该降级到Snow Leopard和XCode 3。

解决方案


  1. 下载iPhone配置实用程序... http://support.apple.com/kb/DL1465

  2. 安装,开始,退出此实用程序。

  3. Xcode现在可以正确启动。


This week I bought my first Mac in about 10 years (yeah!). It's a used Mac Pro (2x2GHz Dual-Core Xeon with 2GB RAM). It has a fresh install of Mac OS X Lion 10.7.2. I've only installed OmniOutlner Pro, Textmate, and Ruby RVM.

I've also downloaded and installed Xcode 4.2.1 from the App Store. At first, Xcode worked fine (only launched to see if it worked). Then, the next day I launched Xcode to start using it and it crashed immediately upon launch. Since then, I've tried many things to try to correct the problem: rebooting, reinstalling, redownloading and reinstalling, deleting and reinstalling, deleting iTunes and reinstalling (an early Stack Overflow answer suggested this), and more. Nothing seems to help. Sometimes I can get as far as clicking on a menu item in XCode (while the crash message is being displayed), but that's it.

Everything else seems to work perfect on this machine, so I doubt it's the hardware. I do not have the OS X install DVD.

I bought this system so I can program in Xcode. What would you do if you were me?


UPDTE-1: Here are the first lines from the Problem Details and System Configuration report (in general it seems most of these I have looked at for this problem seem to be talking about the IDE Navigator Log):

Process:         Xcode [17619]
Path:            /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:      com.apple.dt.Xcode
Version:         4.2.1 (834)
Build Info:      IDEApplication-834000000000000~2
Code Type:       X86-64 (Native)
Parent Process:  launchd [118]

Date/Time:       2011-12-01 14:33:14.664 -0600
OS Version:      Mac OS X 10.7.2 (11C74)
Report Version:  9

Interval Since Last Report:          72258 sec
Crashes Since Last Report:           5
Per-App Interval Since Last Report:  719 sec
Per-App Crashes Since Last Report:   5
Anonymous UUID:                      1D22E753-40F6-4035-B53A-236881ED2A58

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 4D502
Encountered multiple assertions. First assertion was: ASSERTION FAILURE in /SourceCache/IDELogNavigator/IDELogNavigator-820/IDELogNavigator.m:582
Details:  (self.rootNavigableItem) should not be nil.
Object:   <IDELogNavigator: 0x4018f6420>
Method:   -revertStateWithDictionary:
Thread:   <NSThread: 0x40010a260>{name = (null), num = 1}
Hints:   
  0: Replacement view is installing: <IDELogNavigator: 0x4018f6420 representing: <DVTExtension 0x400d33120: Log Navigator (Xcode.IDEKit.Navigator.Logs) v0.1>>
Backtrace:
  0  0x00000001055c4366 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
  1  0x0000000104c3d1a4 _DVTAssertionFailureHandler (in DVTFoundation)
  2  0x000000010ad43cb1 -[IDELogNavigator revertStateWithDictionary:] (in IDELogNavigator)
  3  0x0000000104bffe5b -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation)
  4  0x0000000104bffc12 -[DVTStateToken pullStateFromRepository] (in DVTFoundation)
  5  0x000000010550f33d -[IDENavigatorArea replacementView:didInstallViewController:] (in IDEKit)
  6  0x0000000104df75f1 __42-[DVTReplacementView _setupViewController]_block_invoke_0 (in DVTKit)
  7  0x0000000104c00f4e DVTInvokeWithFailureHint (in DVTFoundation)
  8  0x0000000104df7473 -[DVTReplacementView _setupViewController] (in DVTKit)
  9  0x0000000104df7345 -[DVTReplacementView installedViewController] (in DVTKit)


UPDATE-2: Bummer. I tried the approach referenced by Michael Dautermann below, but it didn't work. Here's what I typed in Terminal:

sudo tmutil disablelocal
sudo /Developer/Library/uninstall-devtools --mode=all
sudo /Developer-old/Library/uninstall-devtools --mode=all
sudo /Developer-old-1/Library/uninstall-devtools --mode=all
sudo tmutil enablelocal

At this point, the /Developer, /Developer-old, and /Developer-old-1 folders were deleted. I then emptied the trash and reinstalled XCode. Everything seemed to be going fine, but when I launched XCode, it immediately crashed again :-(

However, three additional bits of information:

  1. The Problem Details in the Problem Report when XCode crashes appears to be basically the same as the Problem Details reported above.

  2. The version of XCode that gets installed is XCode 4.2.1 Build 4D502, if that matters.

  3. I've now noticed that if I hit "Continue" in the Internal Error crash dialog, about 15 times, XCode becomes usable to the point of exploring the menus, etc., and only seems to bring up the Internal Error crash dialog again if I try to quit.

If anyone has any other ideas, I'm open to trying them. I'm starting to wonder if I have a hardware problem somewhere or if I should downgrade to Snow Leopard and XCode 3.

解决方案

  1. Download the iPhone Configuration Utility... http://support.apple.com/kb/DL1465
  2. Install, start, quit the utility.
  3. Xcode should now start correctly.

这篇关于XCode 4.2.1在启动时在Lion 10.7.2上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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