Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blairmcintosh

macrumors newbie
Original poster
Feb 1, 2006
2
0
Greetings,
I made a static library and various tests programs, obj C and Xcode. Now I am writing a command line tool that uses that library. All running smoothly for a while but now when I attempt to add one of the .h files I cannot select it. It is dimmed. I have added most of them but this one just evades me. I thought that perhaps I didn't "add" the file when I created the library so deleted both it and its corresponging source file and "added" them again. Same result. Any suggestions greatly appreciated.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
I've seen this before. I assume it's an XCode bug. Find the file in the Finder and drag it to where you want it on the file tree in XCode. This will trigger the normal Add options.
 

blairmcintosh

macrumors newbie
Original poster
Feb 1, 2006
2
0
Aaaargh!

My God. How much time have I wasted on this? mmmmmm about 12 hours. Well Thanks heaps. I got in in there. Three hours writing code and and 12 doing nothing. I first tried to drop it into the source leaf but it wouldn't have that so I put it into the project root and, as you said, it opened the "add ....." dialog.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
I've also found in the past that quiting XCode entirely and then reopening it and the project sometimes clears this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.