Re: Rebuild Code Sense Index (command line?)
Re: Rebuild Code Sense Index (command line?)
- Subject: Re: Rebuild Code Sense Index (command line?)
- From: Matthew Firlik <email@hidden>
- Date: Thu, 30 Mar 2006 10:49:48 -0800
On Mar 30, 2006, at 6:51 AM, James Bucanek wrote:
Lachlan Deck wrote on Friday, March 31, 2006:
I'm automating the creation/updating of custom index templates and am
wondering if there's any way to automate
- Project > Editing Project Settings >"Rebuild Code Sense Index"
It'd be really nice to have contol ofver this from the command line.
Close the project and delete the <project folder>/build/
<project_name>.build/<project_name>.pbxindex directory. Xcode will
automatically rebuild its index the next time the project is opened.
All the "Rebuild Code Sense Index" button does is delete the folder
(you can watch this happen if you keep the window open in the Finder).
Actually, there is a command-line tool for this: /usr/bin/xcodeindex
The arguments somewhat mimic xcodebuild ... so you could use:
xcodeindex -project /path/to/your/project clean build
or
xcodeindex -project /path/to/your/project rebuild
and it will update the index for that project. Note there is also a
shell script in /Developer/Extras/Xcode Index Templates called
"install_templates" that is used to install all of the basic
templates, which might be of interest to you.
- matthew
_______________________________________________
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