Xcode immediately crashes after opening a new project - xcode

$ 14:51:33 /Applications/Xcode.app/Contents/MacOS/Xcode
2020-04-05 14:51:44.095 Xcode[5709:184457] -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
2020-04-05 14:51:44.099 Xcode[5709:184457] [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
UserInfo: (null)
Hints:
0: Sending newProject: to IDEApplicationCommands from (null)
1: Sending openNewProjectAssistant: to IDEWelcomeWindowController from <IDEWelcomeWindowHighlightButton: 0x7fbc46da41b0>
2020-04-05 14:51:44.116 Xcode[5709:184457] [MT] DVTAssertions:
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
4 ___forwarding___ (in CoreFoundation)
5 _CF_forwarding_prep_0 (in CoreFoundation)
6 __68-[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults]_block_invoke_2 (in IDEKit)
7 __68-[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults]_block_invoke (in IDEKit)
8 _dispatch_client_callout (in libdispatch.dylib)
9 _dispatch_once_callout (in libdispatch.dylib)
10 -[IDEWorkspaceWindowController _purgeOldIdentifiersFromUserDefaults] (in IDEKit)
11 -[IDEWorkspaceWindowController windowDidLoad] (in IDEKit)
12 -[NSWindowController _windowDidLoad] (in AppKit)
13 -[NSWindowController window] (in AppKit)
14 -[IDEDocumentController _openUntitledWorkspaceDocumentAndDisplay:simpleFilesFocused:forSingleFile:editorDocumentURLOrNil:error:] (in IDEKit)
15 -[IDEApplicationCommands newTemplateForTemplateKind:template:] (in IDEKit)
16 -[IDEApplicationCommands newProject:] (in IDEKit)
17 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
18 __37-[DVTApplication sendAction:to:from:]_block_invoke.86 (in DVTKit)
19 DVTInvokeWithFailureHint (in DVTFoundation)
20 -[DVTApplication sendAction:to:from:] (in DVTKit)
21 +[IDECommandManager sendActionForCommandWithIdentifier:from:] (in IDEKit)
22 -[NSApplication(NSResponder) sendAction:to:from:] (in AppKit)
23 __37-[DVTApplication sendAction:to:from:]_block_invoke.86 (in DVTKit)
24 DVTInvokeWithFailureHint (in DVTFoundation)
25 -[DVTApplication sendAction:to:from:] (in DVTKit)
26 -[NSControl sendAction:to:] (in AppKit)
27 __26-[NSCell _sendActionFrom:]_block_invoke (in AppKit)
28 -[NSCell _sendActionFrom:] (in AppKit)
29 -[NSButtonCell _sendActionFrom:] (in AppKit)
30 NSControlTrackMouse (in AppKit)
31 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
32 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
33 -[NSControl mouseDown:] (in AppKit)
34 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] (in AppKit)
35 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] (in AppKit)
36 -[NSWindow(NSEventRouting) sendEvent:] (in AppKit)
37 -[NSApplication(NSEvent) sendEvent:] (in AppKit)
38 -[IDEApplication sendEvent:] (in IDEKit)
39 -[NSApplication run] (in AppKit)
40 NSApplicationMain (in AppKit)
41 main (in Xcode)
42 start (in libdyld.dylib)
Abort trap: 6
This is my first time installing XCode on my MacbookPro
I'm on macOS Catalin Version 10.15.4
What I tried
Installing different versions of Xcode: 11.4, 11.3, 10.1
sudo rm -rf /Library/Developer/CommandLineTools && xcode-select --install
sudo xcodebuild -license
Removing ~/Library/Caches
Removing /Library/Caches
Removing ~/Library/Developer
defaults delete com.apple.dt.xcode

Looks like maybe something is wrong with your defaults.
Try running the below command to clear them out
defaults delete com.apple.dt.xcode

Most likely somewhere in code, there is an assignment of an NSNumber variable to an NSString variable.
Thus number object (instance 0xed1bd6c1b1e0a897) cannot respond to hasPrefix: method.
2020-04-05 14:51:44.095 Xcode[5709:184457] -[__NSCFNumber hasPrefix:]: unrecognized selector sent to instance 0xed1bd6c1b1e0a897
Try to debug & figure out what actually this object is 0xed1bd6c1b1e0a897, where it's being created and assigned to string object.
Once you find it - you can easily convert it to NSString by using stringValue property.
I do presume you were able to build the project. If Xcode crashes even before build & run - I have no idea then.

Try deleting all these folders?
~/Library/Containers/com.apple.dt.BitbucketHostBuiltInExtension
~/Library/Containers/com.apple.dt.BitbucketServerHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitHubEnterpriseHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitHubHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitLabHostBuiltInExtension
~/Library/Containers/com.apple.dt.GitLabSelfHostBuiltInExtension
~/Library/Containers/com.apple.dt.IDECacheDeleteAppExtension
~/Library/Containers/com.apple.dt.XCDocumenter.XCDocumenterExtension
~/Library/Containers/com.apple.dt.XcodeBuiltInExtensions
~/Library/Preferences/com.apple.dt.Instruments.plist
~/Library/Preferences/com.apple.dt.SKAgent.plist
~/Library/Preferences/com.apple.dt.Xcode.ITunesSoftwareService.plist
~/Library/Preferences/com.apple.dt.Xcode.LSSharedFileList.plist
~/Library/Preferences/com.apple.dt.Xcode.Playground.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.xcodebuild.plist

Try deleting the DerivedData directory in ~/Library/Developer/Xcode
or
Try Uninstalling Xcode and then Reinstalling it

Related

Xcode Version 9.0.1 (9A1004) Crash with Cannot update for observer NSTouchBarFinder

Opening a specific project Xcode crashes repeatably when opening specific project.
Opening another project seems fine. It seems that the touch-bar is creating some issues. Any ideas on how to resolve this.
Opening the project on a different MacBook without a touch-bar seems fine.
From the logs I can see that this is related to the NSTouchBarFinder and the IDE not being KVO compliant?
I keep getting this crash log:
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 9A1004
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Cannot update for observer <NSTouchBarFinder 0x7fee281263e0> for the key path "_keyWindow.firstResponder" from <IDEApplication 0x7fee22f0b1c0>, most likely because the value for the key "_keyWindow" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the IDEApplication class.
UserInfo: (null)
Hints:
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
3 +[NSException raise:format:] (in CoreFoundation)
4 -[NSKeyValueNestedProperty object:withObservance:didChangeValueForKeyOrKeys:recurse:forwardingValues:] (in Foundation)
5 NSKeyValueDidChange (in Foundation)
6 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
7 -[NSApplication _setKeyWindow:] (in AppKit)
8 -[NSWindow _changeKeyAndMainLimitedOK:] (in AppKit)
9 -[NSWindow _makeKeyRegardlessOfVisibility] (in AppKit)
10 NSPerformVisuallyAtomicChange (in AppKit)
11 -[NSWindow makeKeyAndOrderFront:] (in AppKit)
12 -[NSWindow(NSWindow_Theme) _finishDeminiaturizeFromDock:] (in AppKit)
13 -[NSWindow(NSWindowTabbing) _doNonVisibleTabDeminimize] (in AppKit)
14 -[NSWindowStackController handleDeminimizingWindow:] (in AppKit)
15 -[NSWindow(NSWindowTabbing) _prepareTabbedWindowDeminimize] (in AppKit)
16 -[NSWindow(NSWindow_Theme) _prepareToRestoreFromDock:forceActivation:wantsToBeKey:] (in AppKit)
17 -[NSWindow(NSWindow_Theme) _doRestoreComingFromDock:forceActivation:wantsToBeKey:] (in AppKit)
18 -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] (in AppKit)
19 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] (in AppKit)
20 -[NSWindow orderWindow:relativeTo:] (in AppKit)
21 NSPerformVisuallyAtomicChange (in AppKit)
22 -[NSWindowStackController _doTabSelectionAndWindowOrderingAtIndex:makeKeyAndOrderFront:justOrderFront:] (in AppKit)
23 -[NSWindowStackController setSelectedWindow:] (in AppKit)
24 -[NSWindow(NSWindowTabbing) _doTabbedWindowOrderFront] (in AppKit)
25 -[NSApplication _setKeyWindow:] (in AppKit)
26 -[NSWindow _changeKeyAndMainLimitedOK:] (in AppKit)
27 -[NSWindow _makeKeyRegardlessOfVisibility] (in AppKit)
28 NSPerformVisuallyAtomicChange (in AppKit)
29 -[NSWindow makeKeyAndOrderFront:] (in AppKit)
30 -[NSWindowController showWindow:] (in AppKit)
31 -[IDEWorkspaceDocument setOrderedWindowControllerNames:] (in IDEKit)
32 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] (in Foundation)
33 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] (in Foundation)
34 _NSSetObjectValueAndNotify (in Foundation)
35 -[IDEWorkspaceDocument revertStateWithDictionary:] (in IDEKit)
36 -[DVTStateToken _pullStateFromDictionary:] (in DVTFoundation)
37 -[DVTStateToken pullStateFromRepository] (in DVTFoundation)
38 -[IDEWorkspaceDocument _readFromURL:ofType:simpleFilesFocused:error:] (in IDEKit)
39 -[IDEWorkspaceDocument readFromURL:ofType:error:] (in IDEKit)
40 -[NSDocument _initWithContentsOfURL:ofType:error:] (in AppKit)
41 -[NSDocument initWithContentsOfURL:ofType:error:] (in AppKit)
42 -[IDEDocumentController makeDocumentWithContentsOfURL:ofType:error:] (in IDEKit)
43 __97-[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:]_block_invoke (in AppKit)
44 -[NSDocumentController makeDocumentWithContentsOfURL:alternateContents:ofType:completionHandler:] (in AppKit)
45 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke (in AppKit)
46 __145-[IDEDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke (in IDEKit)
47 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_2.922 (in AppKit)
48 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke.921 (in AppKit)
49 __144-[NSDocumentController _coordinateReadingAndGetAlternateContentsForOpeningDocumentAtURL:resolvingSymlinks:thenContinueOnMainThreadWithAccessor:]_block_invoke_4 (in AppKit)
50 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
51 __CFRunLoopDoBlocks (in CoreFoundation)
52 __CFRunLoopRun (in CoreFoundation)
53 CFRunLoopRunSpecific (in CoreFoundation)
54 RunCurrentEventLoopInMode (in HIToolbox)
55 ReceiveNextEventCommon (in HIToolbox)
56 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
57 _DPSNextEvent (in AppKit)
58 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
59 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
60 -[NSApplication run] (in AppKit)
61 NSApplicationMain (in AppKit)
62 start (in libdyld.dylib)
abort() called
OS details:
Process: Xcode [1733]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 9.0.1 (13249)
Build Info: IDEFrameworks-13249000000000000~2
App Item ID: 497799835
App External ID: 823984564
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1733]
OS Version: Mac OS X 10.12.6 (16G29)
I had the same issue this morning, even with the Xcode 9.0.0 version.
I succeeded to bypass the crash at the xcode launch by deleting the xcuserdatad folder (prefixed with your username) inside the project.xcworkspace folder.

Why does Xcode crash when I open a project?

I'm trying to open a project with the latest version of Xcode 5.0.2 (updated today). For some reason, it crashes. I can't open any project, it crashes all times :(
Crash report begins like this (if helps):
Process: Xcode [1631]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.2 (3335.32)
Build Info: IDEApplication-3335032000000000~4
App Item ID: 497799835
App External ID: 106632651
Code Type: X86-64 (Native)
Parent Process: launchd [133]
Responsible: Xcode [1631]
User ID: 501
Date/Time: 2013-11-12 18:14:14.782 +0100
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: 041E96A2-1123-3287-3FF6-A3F30382FC69
Sleep/Wake UUID: C6807823-3147-4602-B01F-A2A9E80B8259
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A3005
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3542/Framework/Classes/FileTypes/DVTFileDataType.m:616
Details: stringRep should be a non-empty string, but it is nil
Object: <DVTFileDataType>
Method: +fileDataTypeFromStringRepresentation:
Thread: <NSThread: 0x7fc7d9d151c0>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000102e69ea8 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x0000000101bf17a5 _DVTAssertionHandler (in DVTFoundation)
2 0x0000000101bf1ad4 _DVTAssertionFailureHandler (in DVTFoundation)
3 0x0000000101b8ca94 +[DVTFileDataType fileDataTypeFromStringRepresentation:] (in DVTFoundation)
4 0x0000000107fa5dd0 -[Xcode3TargetProduct fileDataType] (in DevToolsCore)
5 0x00000001025f25ce -[IDEBuildableProductRunnable runnableUTIType:] (in IDEFoundation)
6 0x00000001025ee340 -[IDEProfileSchemeAction _updateAnalysisToolService] (in IDEFoundation)
7 0x0000000101c02bc8 __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
8 0x0000000101c19e88 DVTInvokeWithStrongOwnership (in DVTFoundation)
9 0x0000000101b58479 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
10 0x00007fff90c4bc18 NSKeyValueNotifyObserver (in Foundation)
11 0x00007fff90c4ade8 NSKeyValueDidChange (in Foundation)
12 0x00007fff90c4fa56 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
13 0x0000000102f6b395 -[IDEContextAutocreationController addBuildable:toScheme:] (in IDEKit)
14 0x0000000102f6bd68 -[IDEContextAutocreationController createSchemeForBuildable:withName:] (in IDEKit)
15 0x0000000102f6b16d -[IDEContextAutocreationController createDefaultSchemeForBuildable:] (in IDEKit)
16 0x0000000102cf2976 -[IDEContextAutocreationController autocreateSchemesForcingAutocreate:] (in IDEKit)
17 0x0000000101c03618 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
18 0x0000000101b57fc5 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
19 0x0000000101c0326c -[NSObject(DVTObservingConvenience) dvt_addObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
20 0x0000000102f6a11e __53-[IDEContextAutocreationController initForWorkspace:]_block_invoke_2 (in IDEKit)
21 0x0000000101c03618 -[NSObject(DVTObservingConvenience) _dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
22 0x0000000101b57fc5 -[NSObject(DVTObservingConvenience) dvt_newObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
23 0x0000000101c0326c -[NSObject(DVTObservingConvenience) dvt_addObserverForKeyPath:options:owner:withHandlerBlock:] (in DVTFoundation)
24 0x0000000102f69e8b __53-[IDEContextAutocreationController initForWorkspace:]_block_invoke (in IDEKit)
25 0x0000000101c02bc8 __73-[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:]_block_invoke (in DVTFoundation)
26 0x0000000101c19e88 DVTInvokeWithStrongOwnership (in DVTFoundation)
27 0x0000000101b58479 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
28 0x00007fff90c4bc18 NSKeyValueNotifyObserver (in Foundation)
29 0x00007fff90c4ade8 NSKeyValueDidChange (in Foundation)
30 0x00007fff90c4fa56 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] (in Foundation)
31 0x000000010268481a __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke (in IDEFoundation)
32 0x0000000102684ac1 __81-[IDEWorkspace _finishLoadingAsynchronously:shouldUpgradeFromSimpleFilesFocused:]_block_invoke281 (in IDEFoundation)
33 0x00007fff90c6b055 -[NSBlockOperation main] (in Foundation)
34 0x00007fff90c4a591 -[__NSOperationInternal _start:] (in Foundation)
35 0x00007fff90c4a23b __NSOQSchedule_f (in Foundation)
36 0x00007fff852dc2ad _dispatch_client_callout (in libdispatch.dylib)
37 0x00007fff852e3f03 _dispatch_main_queue_callback_4CF (in libdispatch.dylib)
38 0x00007fff859b9839 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation)
39 0x00007fff85974b14 __CFRunLoopRun (in CoreFoundation)
40 0x00007fff85974275 CFRunLoopRunSpecific (in CoreFoundation)
41 0x00007fff8bc2ef0d RunCurrentEventLoopInMode (in HIToolbox)
42 0x00007fff8bc2ecb7 ReceiveNextEventCommon (in HIToolbox)
43 0x00007fff8bc2eabc _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
44 0x00007fff8b0af28e _DPSNextEvent (in AppKit)
45 0x00007fff8b0ae8db -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
46 0x00007fff8b0a29cc -[NSApplication run] (in AppKit)
47 0x00007fff8b08d803 NSApplicationMain (in AppKit)
48 0x00007fff899005fd start (in libdyld.dylib)
The most common cause of these kinds of crashes is a corrupted DerivedData directory. You can delete this directory (and many of us do this regularly, just to keep things more stable).
Open Xcode
Preferences
Locations
The Derived Data option will tell you where your directory is
Delete that directory
Try to open your project
Personally, I select "Custom" for Derived Data, and put it in /tmp/xcode-build. This deletes the directory every time I reboot, and is easier to type than the default when I want to delete it by hand.
EDIT: One more common problem: you often need to reboot after upgrading Xcode. Since Xcode 5, that's been less of an issue, but it's still worth trying, especially if you're upgrading from Xcode 4.
Nothing work for me. I delete my .xcworkspace and regenerate .xcworkspace by pod install and work for me. but take a backup before you do so.

Xcode 4.3 crashes when using LLDB

Since installing xcode 4.3 (from the app store), Xcode crashes when I try to run a few of my apps with the debugger set to LLDB. GDB works fine.
I've already tried reinstalling iTunes and removing all traces of xcode and reinstalling that. I've also tried removing the .xib files and re-adding them to the project.
Any help would be great :)
Here is some of the report that is generated:
Process: Xcode [2102] Path:
/Applications/Xcode.app/Contents/MacOS/Xcode Identifier:
com.apple.dt.Xcode Version: 4.3.2 (1177) Code Type:
X86-64 (Native)
Date/Time: 2012-05-05 11:02:34.865 +1000 OS Version: Mac OS
X 10.7.3 (11D50b) Report Version: 9
Interval Since Last Report: 2063 sec Crashes Since Last
Report: 7 Per-App Interval Since Last Report: 882 sec
Per-App Crashes Since Last Report: 7
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000
Application Specific Information: ProductBuildVersion: 4E2002 UNCAUGHT
EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in
'com.apple.dt.dbg.DebuggerLLDB' while firing fault for extension
'Xcode.DebuggerFoundation.Debugger.LLDB' UserInfo: {
NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x402a89c20
{DVTPlugInIdentifierErrorKey=com.apple.dt.dbg.DebuggerLLDB,
DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB,
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=/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin,
NSLocalizedFailureReason=The plug-in
\U201ccom.apple.dt.dbg.DebuggerLLDB\U201d at path
\U201c/Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin\U201d
could not be loaded. The plug-in or one of its prerequisite plug-ins
may be missing or damaged., NSUnderlyingError=0x4003c62e0 \"The bundle
\U201cDebuggerLLDB\U201d couldn\U2019t be loaded because it is damaged
or missing necessary resources.\"}"; } Hints: None Backtrace: 0
0x00007fff945fcfaa __exceptionPreprocess (in CoreFoundation) 1
0x00007fff8c9add5e objc_exception_throw (in libobjc.A.dylib) 2
0x000000010f1b207f -[DVTExtension _fireExtensionFault] (in
DVTFoundation) 3 0x000000010f22c666
__DVTDispatchSync_block_invoke_0 (in DVTFoundation) 4 0x00007fff90a53aad _dispatch_barrier_sync_f_invoke (in
libdispatch.dylib) 5 0x000000010f22c483 DVTDispatchSync (in
DVTFoundation) 6 0x000000010f22c297 DVTSyncPerformBlock (in
DVTFoundation) 7 0x000000010f18e69b -[DVTDispatchLock
performLockedBlock:] (in DVTFoundation) 8 0x000000010f1b1e32
-[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation) 9 0x000000010f1b1d6f -[DVTExtension valueForKey:]
(in DVTFoundation) 10 0x0000000116707322 -[DBGLLDBDebugLocalService
operationWorkerWithLaunchSession:error:] (in DebuggerLLDBService) 11
0x0000000116cc10b8 (in IDEiPhoneSupport) 12 0x000000010f85f9d3
-[IDERunDestination runOperationForLaunchSession:error:] (in IDEFoundation) 13 0x000000010f85e690 -[IDELaunchSchemeAction
runOperationForExecutionEnvironment:withBuildOperation:buildParameters:buildableProductDirectories:runDestination:outError:]
(in IDEFoundation) 14 0x000000010f85a5d0 -[IDEScheme
_executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:overridingProperties:destination:buildLog:filePath:error:testCallbackBlock:]
(in IDEFoundation) 15 0x000000010f85dc0b -[IDEScheme
runWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:commandName:error:]
(in IDEFoundation) 16 0x000000010fc8cdfc -[IDEWorkspaceTabController
_actuallyPerformContextTask:command:commandName:buildCommand:filePath:completionBlock:]
(in IDEKit) 17 0x000000010fd354aa __107-[IDEWorkspaceTabController
_performContextTask:command:commandName:buildCommand:filePath:completionBlock:]_block_invoke_0
(in IDEKit) 18 0x000000010fc8cab3 -[IDEWorkspaceTabController
_performContextTask:command:commandName:buildCommand:filePath:completionBlock:]
(in IDEKit) 19 0x000000010fd3578e __101-[IDEWorkspaceTabController
_performDebuggableContextTask:command:commandName:buildCommand:filePath:]_block_invoke_0
(in IDEKit) 20 0x00000001109e62e8 -[DVTDeveloperModeAlertHelper
_askToEnableDeveloperModeIfNecessary] (in DVTDeveloperModeHelper) 21 0x000000010fcb85aa -[IDEWorkspaceTabController
_performDebuggableContextTask:command:commandName:buildCommand:filePath:]
(in IDEKit) 22 0x000000010fcb83e5 -[IDEWorkspaceTabController
runActiveRunContext:] (in IDEKit) 23 0x00007fff945ec75d -[NSObject
performSelector:withObject:] (in CoreFoundation) 24
0x00007fff913f1cb2 -[NSApplication sendAction:to:from:] (in AppKit)
25 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (in
DVTKit) 26 0x000000010fbd2096 -[IDEApplication sendAction:to:from:]
(in IDEKit) 27 0x00007fff945ec75d -[NSObject
performSelector:withObject:] (in CoreFoundation) 28
0x00007fff913f1cb2 -[NSApplication sendAction:to:from:] (in AppKit)
29 0x000000010f4838b6 -[DVTApplication sendAction:to:from:] (in
DVTKit) 30 0x000000010fbd2096 -[IDEApplication sendAction:to:from:]
(in IDEKit) 31 0x000000010f53ea10 -[DVTDelayedMenuButtonCell
trackMouse:inRect:ofView:untilMouseUp:] (in DVTKit) 32
0x00007fff913efbde -[NSControl mouseDown:] (in AppKit) 33
0x00007fff913ba6e0 -[NSWindow sendEvent:] (in AppKit) 34
0x00007fff9135316d -[NSApplication sendEvent:] (in AppKit) 35
0x000000010fbcddd1 -[IDEApplication sendEvent:] (in IDEKit) 36
0x00007fff912e91f2 -[NSApplication run] (in AppKit) 37
0x00007fff91567b88 NSApplicationMain (in AppKit) 38
0x000000010f188eec (in Xcode) Performing
#selector(performRunAction:) from sender
IDERunPauseContinueToolbarButton 0x401e634a0 objc[2102]: garbage
collection is ON abort() called
Hi I have the same problem and I reported to Apple, they told me is a bug and they know about it , my only way around is to change the compiler to GDB all the time, until Apple fix the bug.
I have solve the problem as bellow:may be is useful for you.I try to execute the lldb command in terminal, it got the result like that the my lldb need the python 2.7.but before,when i install the clang,the python version changed to 2.6,so i reinstall the python 2.7.my lldb worked well.
Have you upgraded to Xcode 4.6.1? If so then look for /System/Library/Frameworks/Python.framework/Versions/2.7 if there is no 2.7 reinstall Python. There is a installer at Python.org for MAC. Btw if you happen to see Current and not 2.7 remove the folder called Current. I had the LLDB problem and this is what I've done and everything worked well.
I had a same problem when Python was installed with homebrew.
I just did this:
sudo ln -s /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions /System/Library/Frameworks/Python.framework/Versions
And problem was solved.
Still isn't working for me as of Mountain Lion (10.8.2), Xcode 4.5.1, I've tried deleting and reinstalling to no avail. This isn't a huge deal to me right now as I'm still learning (did the Stanford course & doing the Big Nerd Ranch book right now) however I imagine once I start doing some team work that people won't appreciate me changing the Product Scheme over from LLDB to GDB just so I can run the simulator.

Xcode crash on archived app validation

I am trying to validate an iPhone app for submission through the organizer window in Xcode.
Xcode crashes and gives the following error message on attempting to validate:
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[ITunesSoftwareApplicationDescription applicationType]: unrecognized selector sent to instance 0x400ab34e0
UserInfo: (null)
Hints: None
Backtrace:
0 0x00007fff82fd126a __exceptionPreprocess (in CoreFoundation)
1 0x00007fff841e4d5e objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff8305d4ce -[NSObject doesNotRecognizeSelector:] (in CoreFoundation)
3 0x00007fff82fbe133 ___forwarding___ (in CoreFoundation)
4 0x00007fff82fbdf48 _CF_forwarding_prep_0 (in CoreFoundation)
5 0x000000010dcbcc9b __block_global_8 (in IDEArchivedApplicationsViewer)
6 0x00007fff82ffaed2 __NSArrayChunkIterate (in CoreFoundation)
7 0x00007fff83056491 ____NSArrayGetIndexesPassingTest_block_invoke_1 (in CoreFoundation)
8 0x00007fff895d1467 _dispatch_apply_serial (in libdispatch.dylib)
9 0x00007fff895cf9d7 _dispatch_sync_f_invoke (in libdispatch.dylib)
10 0x00007fff895d1347 dispatch_apply_f (in libdispatch.dylib)
11 0x00007fff895d1697 _dispatch_apply_slow (in libdispatch.dylib)
12 0x00007fff82fcc2d2 __NSArrayGetIndexesPassingTest (in CoreFoundation)
13 0x000000010dcbcaee __50-[AAVFetchApplicationListAssistant viewDidInstall]_block_invoke_0 (in IDEArchivedApplicationsViewer)
14 0x00007fff895cd8ba _dispatch_call_block_and_release (in libdispatch.dylib)
15 0x00007fff895ce799 _dispatch_worker_thread2 (in libdispatch.dylib)
16 0x00007fff8c7853da _pthread_wqthread (in libsystem_c.dylib)
17 0x00007fff8c786b85 start_wqthread (in libsystem_c.dylib)
Has anyone come acrss this?
I had this exact error and fixed it. it took me 1 full day with no success reading the forums, then i read ALL of apple papers on the subject (about 15-20 pages) and fixed them fairly quickly.
Your certificates are not in order. This is how its fixed: 1) have your distribution certificate available on your machine, and is selectable under code signing. (4.2.1 said distribution, and a provisioning profile that it can use. Once i fixed it, xcode stopped crashing, and validated with meaningful results.
david

xcode crashes all the time !

I have crazy problem with xcode 4 when ever I want build and run my app IF the simulator be open xcode crashes !!!!! I never had this problem , I unistall the xcode 4.0 and then install new version 4.0.2 but still has this problem !
ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-303/Framework/Classes/Workspace/IDEWorkspaceTabController.m:2327
Details: Assertion failed: [suppressionTargetValue isEqualToString:_kUserDefaults_IDESuppressStopExecutionWarningTargetValue_Add]
Object: <IDEWorkspaceTabController: 0x201464400>
Method: -_showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:
Thread: <NSThread: 0x200020700>{name = (null), num = 1}
Hints: None
Backtrace:
0 0x0000000100949773 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010006d394 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000100931e02 -[IDEWorkspaceTabController _showWarningForBuild:forOtherExecution:trackersToStop:taskActionBlock:] (in IDEKit)
3 0x00000001008e830b -[IDEWorkspaceTabController _performContextTask:command:commandName:] (in IDEKit)
4 0x00007fff88486e9a -[NSApplication sendAction:to:from:] (in AppKit)
5 0x00000001001cf63c -[DVTApplication sendAction:to:from:] (in DVTKit)
6 0x000000010085b656 -[IDEApplication sendAction:to:from:] (in IDEKit)
7 0x00007fff884ab41e -[NSMenuItem _corePerformAction] (in AppKit)
8 0x00007fff884ab188 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit)
9 0x00007fff88490e09 -[NSMenu performKeyEquivalent:] (in AppKit)
10 0x00007fff8848fbb1 -[NSApplication _handleKeyEquivalent:] (in AppKit)
11 0x00007fff88360645 -[NSApplication sendEvent:] (in AppKit)
12 0x000000010085b36e -[IDEApplication sendEvent:] (in IDEKit)
13 0x00007fff882f74da -[NSApplication run] (in AppKit)
14 0x00007fff882f01a8 NSApplicationMain (in AppKit)
15 0x0000000100000eec
16 0x0000000000000002
XCode - Preference - General - Dialog Warnings - Reset "Don`t Ask Me" Warnings button Click!
I solved this problem.
Check your Disk's permissions. Start Disk Utility and do Verify Disk and Repair Permissions.

Resources