Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rebuild Code Sense Index (command line?)




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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Rebuild Code Sense Index (command line?) (From: James Bucanek <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.