Re: Confirming bug in file references; was: adding new group
Re: Confirming bug in file references; was: adding new group
- Subject: Re: Confirming bug in file references; was: adding new group
- From: James Bucanek <email@hidden>
- Date: Fri, 11 Aug 2006 16:21:51 -0700
Markian Hlynka wrote on Friday, August 11, 2006:
>I went and added the files again, trying to use the sourcetree
>referencing... Here's what I finally noticed. It says:
>Path: ../../../../../../Users/markian/Documents/School/PhD/
>Development/CodeGen/Games/Go9by9
>Full Path: /Users/Users/markian/Documents/School/PhD/Development/
>CodeGen/Games/Go9by9
>
>Notice the problem in Full Path? It says /Users/Users...! Aha! Now,
>if I add something as project relative, it seems to be OK.. I get:
>
>Path: ../Games/Go9by9
>
>Full Path: /Users/markian/Documents/School/PhD/Development/CodeGen/
>Games/Go9by9
That definitely looks like a bug, but I've honestly never seen anything like it.
If you can set up a new project and reproduce the problem, zip it up and file a bug report. If you create a new project and don't see this problem, revisit your project's settings again. Also consider the possibility that you have a corrupted project file and consider rebuilding it from scratch.
>The only thing puzzling here is that in my groups and files pane of
>the project, the new directory is BLUE instead of YELLOW. Why? Does
>this mean something?
It means a lot.
A yellow folder is a source group in your project. A source group contains other source items or source groups.
A blue folder is a source folder. As far as Xcode is concerned, it is a single entity -- think of it as a "blob" or a package. A source folder cannot contain other source groups or source items. The files and folder you seen inside of it are just its contents. Xcode does not maintain properties for these items (although it will manage them in source control). They can't be individually assigned to targets, they won't be included in header searches, and so on.
Use source groups to organize your project's source items into a hierarchy. If you are adding a collection of source files, you need to add them as a source group because every source file in that folder needs to be a source item for the compile phase.
Use source folders to add an entire folder of content treating it as a single entity. A typical application for source folders would be a folder full of HTML documentation. You don't add individual HTML files to various targets. You treat the entire folder as a single item, adding it to a copy files phase, so that the whole thing gets copied into your application bundle as a resource.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden