Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

xcode encountered an internal logic error

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 dispatch oncef (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.

Posted on Feb 25, 2011 11:21 AM

Reply
25 replies

Feb 26, 2011 2:53 AM in response to Bob Lang1

Hi Bob Lang1, I am a complete beginner at Xcode and was wondering, how do i clear Xcode's cache. It won't run properly. When I go to Xcode, it comes up with the error. I click on continue 3 times and then click on the Xcode icon and it comes up with the screen at the beginning. I select one of my projects and suddenly that window disappears and when i click on the Xcode icon again it goes to the same window. Also in the status bar at the top, there is no File, Project, or anything like that. All there is is the Apple logo and Xcode. And also, when I click on the Xcode in the status bar, nothing happens, although it is definitely highlighted.

So, what do I do now. I have a backup of the Xcode installation file burnt to a cd just incase I need to reinstall Xcode.

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

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

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.

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.

Dec 1, 2011 8:19 AM in response to Ivanthehackerful

Hi all,


I tried everything I found on this page, I read elsewhere that reinstalling iTunes might work...

But I'm still getting the same errors every time I open Xcode :/


Do you have any other idea?


I join the error message :

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.


ASSERTION FAILURE in /SourceCache/IDELogNavigator/IDELogNavigator-820/IDELogNavigator.m:582

Details: (self.rootNavigableItem) should not be nil.

Object: <IDELogNavigator: 0x401c607c0>

Method: -revertStateWithDictionary:

Thread: <NSThread: 0x40010a260>{name = (null), num = 1}

Hints:

0: Replacement view is installing: <IDELogNavigator: 0x401c607c0 representing: <DVTExtension 0x40103e200: Log Navigator (Xcode.IDEKit.Navigator.Logs) v0.1>>

Backtrace: ...


Thanks for your help,

xcode encountered an internal logic error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.