Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 23, 2006, 03:32 AM   #1
AlmostThere
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Xcode Errors

Every time I try to build (any) project, I get the error message:

Uncaught Exception:
*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil key

Stack Backtrace:
The stack backtrace has been logged to the console.

with options to Continue (does nothing) or Quit

I have tried trashing preferences (no difference), and am running 2.4.1

Any ideas?
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Nov 23, 2006, 03:55 AM   #2
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Quote:
Originally Posted by AlmostThere View Post
Every time I try to build (any) project, I get the error message:

Uncaught Exception:
*** -[NSCFDictionary setObject:forKey:]: attempt to insert nil key

Stack Backtrace:
The stack backtrace has been logged to the console.

with options to Continue (does nothing) or Quit

I have tried trashing preferences (no difference), and am running 2.4.1

Any ideas?
Any project? Of any language? Using any API? How's that possible?

Maybe a reinstall will help. Or you could let us have more information
Soulstorm is offline   0 Reply With Quote
Old Nov 23, 2006, 04:25 AM   #3
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Have you modified the defaults somehow? My guess is that XCode is trying to build an NSDictionary of the project configuration and you've managed to set a null somewhere you shouldn't.
robbieduncan is offline   0 Reply With Quote
Old Nov 23, 2006, 04:59 AM   #4
AlmostThere
Thread Starter
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Current projects are Java and were building fine before.

As far as I can see this is all languages. Creating a brand new c++ tool with the default code "Hello World!" code causes the same error. The same is true for a java tool, Cocoa project - I could try more but I am getting the picture.

A reinstall is the next step, I suppose ...
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Nov 23, 2006, 08:06 AM   #5
AlmostThere
Thread Starter
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
... which hasn't fixed it.
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Nov 23, 2006, 09:07 AM   #6
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by AlmostThere View Post
... which hasn't fixed it.
Which points even more strongly to my suggestion. Try clearing out all the XCode stuff from your users Library. Or create a new user and see if it works for them.
robbieduncan is offline   0 Reply With Quote
Old Nov 23, 2006, 09:14 AM   #7
AlmostThere
Thread Starter
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Uninstall - reboot - remove preferences - reboot - reinstall - reboot is letting me build again.
__________________
Join the army of the dead: http://www.urbandead.com
AlmostThere is offline   0 Reply With Quote
Old Nov 23, 2006, 09:30 AM   #8
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by AlmostThere View Post
Uninstall - reboot - remove preferences - reboot - reinstall - reboot is letting me build again.
Well, at least it's working! If you ever work out exactly which preference it was let us know...
robbieduncan is offline   0 Reply With Quote
Old Nov 23, 2006, 11:24 AM   #9
AlmostThere
Thread Starter
macrumors 6502a
 
Join Date: Feb 2005
Location: The royal throne of kings, the sceptred isle, the other Eden, the fortress built
Of course. In the meantime, I shall do my uttermost to break it again

FWIW and not that I have either the time or inclination to investigate, the stack trace is as follows:

2006-11-23 14:05:26.305 Xcode[7787] ** INTERNAL ERROR: Uncaught Exception **
Exception: *** -[NSCFDictionary setObject:forKey:]: attempt to insert nil key
Stack:
0 0x956c1b90 -[TSException raise]
1 0x9297be58 +[NSException raise:format:]
2 0x92942464 -[NSCFDictionary setObject:forKey:]
3 0x99279814 -[PBXAEEditorSpecification _modifiedFileDictionary]
4 0x99279618 -[PBXAEEditorSpecification modifiedDocumentsArray]
5 0x991106bc -[PBXExternalEditorInterface modifiedDocumentsFromExternalEditors]
6 0x99110428 -[PBXProjectDocument editedFileDocuments]
7 0x99110240 -[PBXProjectDocument saveEditedDocumentsIfNeededWithCancelTitle:]
8 0x99331ee0 -[XCProjectSelection buildTargets:andDependencies:withAction:usingBuildStyles:usingBuildConfigurationverridingBuildSett ings:notifyingObject:]
9 0x991101e4 -[XCProjectSelection buildTargets:withAction:]
10 0x90a441f0 _objc_msgSendv
11 0x9295cc84 -[NSInvocation invoke]
12 0x9295d234 -[NSInvocation invokeWithTarget:]
13 0x92955030 -[NSObject(NSForwardInvocation) forward::]
14 0x90a440ac __objc_msgForward
15 0x937acc48 -[NSApplication sendAction:to:from:]
16 0x938074b4 -[NSMenu performActionForItemAtIndex:]
17 0x93807238 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:]
18 0x93806ce0 -[NSMenu performKeyEquivalent:]
19 0x938068c0 -[NSApplication _handleKeyEquivalent:]
20 0x9908ba1c -[PBXExtendedApplication sendEvent:]
21 0x93707d0c -[NSApplication run]
22 0x937f8878 _NSApplicationMain
23 0x00009b04
24 0x00009808
All identities removed.

but it may be a little more meaningful to someone with a reasonable knowledge of Cocoa event handling.
__________________
Join the army of the dead: http://www.urbandead.com

Last edited by AlmostThere; Nov 23, 2006 at 11:33 AM.
AlmostThere is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
The App Store app thinks Xcode is installed, but I deleted Xcode. moonman239 Mac Applications and Mac App Store 3 May 6, 2014 05:53 PM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
Xcode 3 vs Xcode 4 when dealing with Objective-C timebourne Mac Programming 8 Sep 23, 2012 05:36 PM
XCode 4.4.1 to Xcode 4.5 in Mountain Lion VinegarTasters OS X 10.8 Mountain Lion 2 Sep 19, 2012 08:55 PM
Xcode 4.5 errors Sixtafoua iPhone/iPad Programming 1 Jun 13, 2012 07:04 PM

Forum Jump

All times are GMT -5. The time now is 07:38 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC