Re: XCode 'can't find' sources
Re: XCode 'can't find' sources
- Subject: Re: XCode 'can't find' sources
- From: David Ewing <email@hidden>
- Date: Mon, 15 Dec 2003 14:08:35 -0700
On Dec 15, 2003, at 11:00 AM, Karan, Cem (Civ,ARL/CISD) wrote:
I'm having the oddest problem with one XCode project that I set up; I
added a bunch of source and header directories to the group window
(dragged them there) and, for all but one of them, the folder icons in
the group window to the left turned beige, but one of them turned blue
(no idea if that is important or not, I don't know what the color codes
mean) When I tried to compile, XCode complained that it couldn't find
certain symbols that were (low and behold) inside of the one blue
folder. I opened Targets/<myTarget>/Headers and realized that the
headers for everything the blue folder were missing; no problem, I
dragged the headers from the blue folder, and they added in fine. I
tried to drag the .c files from the blue folder to
Targets/<myTarget>/Sources, but XCode refused to move them there. The
result is that although the files are in the project (in the blue
folder) they aren't being compiled in, and I don't know what to do to
make them get compiled in. The only workaround that I found to work
was
to delete the project, create the groups using the 'New Group' command,
and then dragging in the individual files. This works, but is slow.
Any good ideas out there?
The one blue folder is a "folder reference". The beige ones are
"groups". A folder reference means that Xcode only knows about the
folder itself. When you expand it, it goes out to the file system to
figure out the folder's contents. I'm surprised you were able to add
headers from inside the folder ref to your target. That shouldn't have
worked.
When you added that one folder to your project, you must have chosen
the option to create a folder reference. For what you're doing, having
XCode recursively create groups is what you wanted (and what you did
for your other folders).
Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.