This week I bought my first Mac in about 10 years (yes!). This is the Mac Pro used (2x2 GHz dual-core Xeon processor with 2 GB of RAM). It has a new installation of Mac OS X Lion 10.7.2. I installed only OmniOutlner Pro, Textmate and Ruby RVM.
I also downloaded and installed Xcode 4.2.1 from the App Store. At first, Xcode worked fine (only for viewing if it worked). Then the next day I launched Xcode to start using it, and it worked right away. Since then, I have tried many things to try to fix the problem: rebooting, reinstalling, reloading and reinstalling, uninstalling and reinstalling, uninstalling iTunes and reinstalling (this was suggested by the early answer to the stack overflow) and much more. Nothing seems to help. Sometimes I can get to the menu item in Xcode (while the error message is displayed), but what is it.
Everything else seems to work fine on this machine, so I doubt it is hardware. I do not have an OS X installation DVD.
I bought this system so that I can program in Xcode. What would you do if you were me?
UPDTE-1 . Here are the first lines from the report of problems and system configuration (in general, it seems that most of them that I looked at this problem seem to talk about 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 that Michael Dautermann referenced below, but that didn't work. Here is what I typed in the 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. Then I emptied the trash and reinstalled Xcode. Everything seemed to be going well, but when I started Xcode it crashed immediately :-(
However, three additional bits of information:
Details of the problem in the problem report, when Xcode crashes look basically the same as the details of the problems reported above.
The version of Xcode that is being installed is Xcode 4.2.1 Build 4D502, if that matters.
Now I noticed that if I delete “Continue” in the “Internal Error Failure” dialog box, about 15 times, Xcode will become usable in menus, etc., and it only seems that the Internal error error dialog again if I will try to get out.
If anyone has any other ideas, I am ready to try them. I'm starting to wonder if I have a hardware problem somewhere, or if I should upgrade to Snow Leopard and Xcode 3.