Re: adding new group
Re: adding new group
- Subject: Re: adding new group
- From: James Bucanek <email@hidden>
- Date: Fri, 4 Aug 2006 06:50:33 -0700
Markian Hlynka wrote on Friday, August 4, 2006:
>
>On Aug 3, 2006, at 18:38, James Bucanek wrote:
>
>> You need to check the reference types and locations for all of your
>> enclosing source groups.
>>
>
>I think I've done this, unless I'm missing how to do it! I'e checked
>that the sourcetree is pointing in the correct place.
I'd suggest that you check again. Quit and restart Xcode, and then check again. This all sounds *very* much like the behavior you'll see if your source tree path is invalid. And make sure all of your source trees are valid, not just the one you're having problems with.
If you're really having problems, consider blowing away your current source tree definition in ~/Library/Preferences/com.apple.Xcode.plist, either by deleting the entire file or removing the PBXApplicationwideBuildSettings and PBXSourceTreeDisplayNames keys. Restart Xcode and re-enter your source tree information.
Also note that when you add a collection of files and choose a source tree relative location, all of the file and group references are source tree relative. When adding something like a framework or tree of source file, I prefer to create a single group reference for the root folder. I make the reference type for that source group to be relative to the source tree. I then import the contents of the folder, making each item relative to enclosing folder.
>> When projects get really messed up, I often suggest deleting all of
>> the source references in the project and adding them in again. This
>> usually fixed up most source item reference problems.
>
>How do I do this, please?
By deleting all of the source references in your project and them importing them back in again. Unfortunately, this requires resetting all of the targets and any special meta-data properties you have set for each file (like file-specific compiler flags). But this is sometime less work than trying to figure out what's wrong with your source file references one file at a time.
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