Skip navigation

xcode encountered an internal logic error

20186 Views 25 Replies Latest reply: Apr 3, 2012 2:57 PM by johankytt RSS
1 2 Previous Next
Ivanthehackerful Calculating status...
Currently Being Moderated
Feb 25, 2011 11:21 AM
I have just installed xcode 4 on my MacMini. I am new to developing and just today have started learning objective c. when i open xcode 4 it gives me an error:

Internal Error

Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state. Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data.

and also when i click on the show details button it gives me this:


ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-215/Framework/Classes/PlugInArchitectu re/DVTPlugInManager.m:215
Details: (extensionPoint) should not be nil.
Object: <DVTPlugInManager: 0x2000a3c20>
Method: -_extensionsForExtensionPoint:matchingPredicate:
Thread: <NSThread: 0x200020600>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x000000010092e613 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010006d974 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000010001b2b7 -[DVTPlugInManager _extensionsForExtensionPoint:matchingPredicate:] (in DVTFoundation)
3 0x000000010001b23d -[DVTPlugInManager sharedExtensionsForExtensionPoint:matchingPredicate:] (in DVTFoundation)
4 0x0000000100a2a771 __61+[IDEDocumentController THREAD_allOrganizerSourceExtensions]_block_invoke0 (in IDEKit)
5 0x00007fff889bbc65 dispatchoncef (in libSystem.B.dylib)
6 0x0000000100a2a704 +[IDEDocumentController THREADallOrganizerSourceExtensions] (in IDEKit)
7 0x0000000100a2b162 +[IDEDocumentController _organizerSourceExtensionForDocumentType:] (in IDEKit)
8 0x00000001009286f0 -[IDEApplicationController _openFiles:] (in IDEKit)
9 0x00007fff81c0f9d6 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] (in AppKit)
10 0x00007fff81adc00d -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] (in AppKit)
11 0x00007fff82e78f62 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] (in Foundation)
12 0x00007fff82e78d92 _NSAppleEventManagerGenericHandler (in Foundation)
13 0x00007fff8841a323 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) (in AE)
14 0x00007fff8841a21c dispatchEventAndSendReply(AEDesc const*, AEDesc*) (in AE)
15 0x00007fff8841a123 aeProcessAppleEvent (in AE)
16 0x00007fff86e45765 AEProcessAppleEvent (in HIToolbox)
17 0x00007fff819e104b _DPSNextEvent (in AppKit)
18 0x00007fff819e07a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
19 0x00007fff819a648b -[NSApplication run] (in AppKit)
20 0x00007fff8199f1a8 NSApplicationMain (in AppKit)
21 0x0000000100000eec

Can anyone help? Or can they at least tell me the problem. Thanks, Ivanthehackerful.
MacMini, Mac OS X (10.6.6), iOS 4 iPod Touch 3rd Generation, MacBook Pro 5G.
  • Bob Lang1 Level 5 Level 5 (4,080 points)
    Currently Being Moderated
    Feb 25, 2011 2:59 PM (in response to Ivanthehackerful)
    Hi Ivan

    Like all complex applications, Xcode sometimes has its wobbles, but they usually go away if you close down Xcode and restart it. If you continue to get problems every time you run Xcode then if can often be fixed by cleaning the cache files.

    Bob
    Mac Book, Mac OS X (10.6.6)
  • Bob Lang1 Level 5 Level 5 (4,080 points)
    Currently Being Moderated
    Feb 26, 2011 3:20 AM (in response to Ivanthehackerful)
    Hi Ivan

    You can clear the caches manually, see: http://www.brighthub.com/computing/mac-platform/articles/2309.aspx

    Or you can use Snow Leopard Cache Cleaner (very cheap shareware, with a long free trial period), or Onyx (free) to do it for you. Google will find both of these applications.

    If that doesn't work, then I'd delete the preferences file (~/Library/Preferences/com.apple.Xcode.plist)

    If that doesn't work, then I'd de-install all developer tools, download a new clean version and re-install.

    Good luck

    Bob
    Mac Book, Mac OS X (10.6.6)
  • Axello Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jun 21, 2011 8:03 AM (in response to Ivanthehackerful)

    With me all the above (cache-flush, preferences-purge) didn't help.

    What DID help in the end was removing the 'xcuserdata' from the XCode project package. Apparently there were some corrupt user-dependent setting there.

  • Tim Fall Level 1 Level 1 (65 points)
    Currently Being Moderated
    Jul 20, 2011 5:11 PM (in response to Axello)

    I just upgraded to Lion and upgraded to Xcode 4. Everytime I open Xcode 4 I get the same "Xcode encountered an internal logic error. Choose "Continue" to continue running Xcode in an inconsistent state.  Choose "Crash" to halt Xcode and file a bug with Crash Reporter. Choosing "Crash" will result in the loss of all unsaved data." error.

     

    The details show a problem with "iPhonePlaceholder". Could this be something from the older version?

     

    UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in 'com.apple.dt.IDE.IDEiPhoneSupport' while firing fault for extension 'Xcode.Device.iPhonePlaceholder'

    UserInfo: {

        NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x40015aa80 {DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEiPhoneSupport, DVTPlugInExecutablePathErrorKey=/Developer/Platforms/iPhoneOS.platform/Develope r/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin/Contents/MacOS/IDEiPho neSupport, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Priva tePlugIns/IDEiPhoneSupport.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.IDE.IDEiPhoneSupport\U201d at path \U201c/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlu gIns/IDEiPhoneSupport.ideplugin\U201d could not be loaded.  The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x40039d3a0 \"The bundle \U201cIDEiPhoneSupport\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";

    }

    Hints: None

    Backtrace:

      0  0x00007fff8290c96a __exceptionPreprocess (in CoreFoundation)

      1  0x00007fff8a074d5e objc_exception_throw (in libobjc.A.dylib)

      2  0x00000001007c9c98 -[DVTExtension _fireExtensionFault] (in DVTFoundation)

      3  0x00000001007b47f9 __38-[DVTDispatchLock performLockedBlock:]_block_invoke_0 (in DVTFoundation)

      4  0x00007fff89599afd _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)

      5  0x00000001007b47a9 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)

      6  0x00000001007c9a45 -[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation)

      7  0x00000001007c99ab -[DVTExtension valueForKey:] (in DVTFoundation)

      8  0x00000001007c9167 +[DVTDevice _knownDeviceLocators] (in DVTFoundation)

      9  0x00000001007c8cea -[DVTDeviceManager startLocating] (in DVTFoundation)

    10  0x0000000100cfe07a IDEInitialize (in IDEFoundation)

    11  0x0000000101072c0b -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)

    12  0x00007fff89d42716 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in Foundation)

    13  0x00007fff828b551a _CFXNotificationPost (in CoreFoundation)

    14  0x00007fff89d2e9cb -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)

    15  0x00007fff8111d6c8 -[NSApplication finishLaunching] (in AppKit)

    16  0x00007fff8111d27d -[NSApplication run] (in AppKit)

    17  0x00007fff8139b52a NSApplicationMain (in AppKit)

    18  0x00000001007aceec (in Xcode)

    19  0x0000000000000002

  • Tim M. Moore Calculating status...
    Currently Being Moderated
    Jul 23, 2011 6:34 PM (in response to Tim Fall)

    I also had the "iPhonePlaceholder" crash. Trashing the "/Developer-old" directory and re-running the Xcode installer seems to have fixed it.

  • Tim Fall Level 1 Level 1 (65 points)
    Currently Being Moderated
    Jul 24, 2011 2:27 PM (in response to Tim M. Moore)

    I'll give that a try.

     

    I get the feeling that the installer tries to pull in configuration and other files from previous Xcode versions when it runs. Trashing the old install and re-installing may make it use a fresh install. Wouldn't that make it not carry over the previous configuration files?

  • Tim M. Moore Level 1 Level 1 (5 points)
    Currently Being Moderated
    Jul 25, 2011 10:14 PM (in response to Tim Fall)

    I wouldn't expect it to store any configuration directly in the /Developer directory (should go under /Library or $HOME/Library) but I can't be sure. I really only use Xcode for building with homebrew, and don't have any Xcode projects or configuration that I needed to keep.

  • Tim Fall Level 1 Level 1 (65 points)
    Currently Being Moderated
    Jul 27, 2011 10:54 PM (in response to Tim M. Moore)

    I agree that it is unlikely there are configuration files stored there. What I was assuming might be possible is that the presence of the /Developer directory might cause the Xcode 4 installer to assume that a previous version was installed (and therefore do additional tasks). I don't know if this is the case.

     

     

    In any event, removing /Developer-old and reinstalling has cleared the error.

  • Dave Sag1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 5, 2011 3:07 AM (in response to Tim Fall)

    I'm getting this exact same error.  Will try zipping my old dev folder and nuking prefs etc and let you know how that goes.  Nice work Apple.

  • Dave Sag1 Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 5, 2011 4:44 AM (in response to Dave Sag1)

    Deleted the old xcode and the new one and reinstalled from scratch and now it works.

  • kwispy quitter Calculating status...
    Currently Being Moderated
    Aug 12, 2011 2:06 PM (in response to Ivanthehackerful)

    I had those files missing too.. I installed the latest iTunes, and got Xcode to work!

  • Andreas Schuderer Level 2 Level 2 (215 points)
    Currently Being Moderated
    Oct 11, 2011 11:32 AM (in response to Ivanthehackerful)

    I had the same problem and typed in 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 folders "Developer" and "Developer-3.2.2".

     

    Then I reinstalled xcode using the installer on the launchpad. Now it works.

     

    P.S.: The first and last line disable and re-enable local snapshots (a feature of time machine). I had the problem that the mtmd proces claimed a whole core and caused my macbook pro to heat up enourmously. The tmutil commands fixed this. The third line was necessary because xcode installer had made a backup of my previous xcode version. Leave this line out if not applicable.

  • cragini Calculating status...
    Currently Being Moderated
    Nov 25, 2011 5:47 AM (in response to Andreas Schuderer)

    Thanks, Andreas.  Same problem, and your instructions worked for me.

1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.