Re: problems with Xcode 2.2.1
Re: problems with Xcode 2.2.1
- Subject: Re: problems with Xcode 2.2.1
- From: James Bucanek <email@hidden>
- Date: Sun, 5 Feb 2006 09:01:19 -0700
Howard Shere wrote on Saturday, February 4, 2006:
>The project has about 80 targets. It seems to be slower at manipulating
>them on my G5 in 2.1.1 than it is on my G3 with 1.5. Every time I
>change targets or add a file to the project the beachball spins for
>about 3 to 5 seconds on the G5.. But that isn't really the issue.
>
>There are files in my project which no longer have checkboxes to show
>that they are part of a target. They did in 1.5. These files all have
>(English) in the file names. I can do get info on them and go to
>targets, but all of the target checkboxes there are dimmed out.
First, some theory: The target checkboxes are a crude indicator/interface to the build phases in the target. A target can have multiple build phases. A source item can be a source for one or more of those phases. If a file is a source file for one or more phases of a target the file is indicated as being a member of that target in the simple target member checkbox. Target phases also have "preferred" file types. When you add a file to a target using the checkbox, Xcode automatically selects a phase for you based on the phase's affinity for the file type you're adding. If none of the phases in a target prefer that type of file, the target checkbox is dimmed.
>All of this worked fine in 1.5, but I can't get rid of the files in my
>target that I need to get rid of now. I don't want to remove them from
>the project because the files are part of other targets which still
>build fine (even tho no checkbox is checked in those files, they are
>still part of the targets).
I would suggest that you examine and manipulate your source membership for targets using the build phases directly rather than using the target member checkboxes. There are several problems with the checkboxes: a file can be included in multiple phases of a target, a file can be in the wrong phase, a target that doesn't have an affinity for a file type won't let you add it -- or remove it even if it's already a member.
By expanding the target and examining the individual phases you can add, remove, or relocate source items between phases. You can also add or remove source items from phases that don't normally accept that type of file. I find this is a common problem with projects that have been upgraded or converted.
James Bucanek
____________________________________________________________________
Author of Beginning Xcode ISBN: 047175479X
<http://www.beginningxcode.com/> Available April 3rd, 2006
_______________________________________________
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