Project indexer ignoring SYMROOT in xcconfig file
Project indexer ignoring SYMROOT in xcconfig file
- Subject: Project indexer ignoring SYMROOT in xcconfig file
- From: email@hidden
- Date: Wed, 7 Nov 2007 19:13:40 +0100
I am trying to change SYMROOT across a whole bunch of projects (and
branches thereof) so that the source tree is completely untouched by
building or opening the project. i.e I don't want any files generated
by Xcode to end up in there
E.g Imagine my source hierarchy was something like this:
/Source
...Project1
......Branch1
......Branch2
...Project2
......Branch1
......Branch2
etc
All my projects share common xcconfig files which have lines similar
to these:
BRANCH_NAME = Branch1
SYMROOT = /BuiltBits/$(BRANCH_NAME)
where each branch would define BRANCH_NAME as appropriate
This way I can have a single top-level folder for all the generated
stuff, but not have to worry about interference between branches.
This works great, except for the fact that when Xcode 3 opens a
project and starts indexing the files in the project, it seems to be
ignoring the value of SYMROOT as set in the xxconfig and instead uses
its default value of $SRCROOT/build/ as the location for the .pbxindex
folder.
If I set a Custom Location for 'Place Build Products In' in the
Project's General info to be $(SYMROOT) it does actually work, but the
problems then are:
1. This has to be done for every project, thereby negating the
usefulness of the xcconfig file.
2. This setting is a per-user setting and as such is not saved in the
project.pbxproj file (which gets checked in to SCM), so every user
would have to do this for every project and branch.
3. Before this setting is changed, it will already have indexed some/
all of the source into $SRCROOT/build/ProjName.build/ProjName.pbxindex
Can anyone see a way out of this, or am I trying to do too much
Thanks
Matt Gough
Agfa Graphics
_______________________________________________
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