Xcode 4.2.1 Crash on Leo 10.7.2 at Startup

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.

+4
source share
7 answers
+2
source

The uninstall process does not cover the user profile of your account. After uninstalling, you should also delete the ~ / Library / Developer / Xcode file. The easiest way to verify this is to create a new user account and see if Xcode opens.

+1
source

My Xcode installation crashed on startup, as described above. I downloaded and installed the iPhone configuration utility (ver3.4) and ran this utility. Xcode has been up and running since launching the iPhone setup utility.

+1
source

I did a Google search and found that the number of reports people having crashes is exactly the same as you described it .

Here's a potential fix described by Andreas Schuderer in this Apple discussion :

I had the same problem and dialed the terminal:

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

Then I deleted the "Developer" and "Developer-3.2.2" folders.

Then I reinstalled xcode using the installer in the launcher. Now it works.

PS: The first and last line disables and re-activates local snapshots (a feature of the time machine). I had a problem that mtmd proces made itself felt in general and made my macbook pro warm up. Tmutil teams fixed this. The third line was necessary because the xcode installer backed up my previous version of xcode. Leave this string if not applicable.

0
source

Try uninstalling Xcode again as described in Update-2; then download and install the iPhone Settings Utility (version 3.3 at the time of publication) (http://support.apple.com/kb/dl851). Run the iPhone setup utility (located in the Applications / Utilities folder). I did not need to do anything with the new configurations / devices / etc - just run the application. Then run Xcode; mine began to work correctly.

0
source

Here is how I fixed mine:

  • Go to → Home → Autosave information → all files related to xcode are sent to the trash

  • Finder → empty trash

  • Apple → reboot

0
source

None of this helped me. Xcode crashed on the Summary page for projects.

The problem arose from an entry in my Info.plist file. I had three entries: Icon , Icon files and Icon files (iOS 5) . I deleted the latter as it was empty and this solved the problem.

0
source

Source: https://habr.com/ru/post/1384134/


All Articles