Saturday, July 4, 2009
Subscribe to Email Digest
 
ScriptBuilders
Craig Williams [staff] ScriptBuilders | Upload your Scripts!
Home >> ScriptBuilders >> Utilities >> XCode Update
Script Info Page
XCode Update 1.5 Script Rating
Open Source | Version: 1.5 | Script id: 3663
Author: Joshua Portway | Developer's Web Site
Scripting Additions Required?: None
Requirements: XCode
Script Type: Editable
Category: Utilities
Click here to View Screenshot
This is a little applescript studio program (my first, so be gentle) which is handy for updating XCode projects. Basically it will scan your project and find any Group folders in the project that have a corresponding folder on your disk, it then scans the contents of the XCode group and the contents of the folder on your disk and works if any files have been added to the disk that aren't in your project. Version 1.5 now also displays files that have been removed from the project. Once it's finished it displays a little treeview in a window showing the structure of your project and where any files have been added or removed (you currently have to actually add them to the project yourself). Files that have been deleted on disk, but are still in your project appear with a "-" next to them, files that are new on disk and not in your project appear with a "+" next to them.
<P>
This saves quite a bit of time if you work on a project with other people. I work on a project with several other people and we use CVS for source control - the problem is that XCode doesn't merge changes to the project itself very well (ie. at all) so we nominate someone (me) who is in charge of maintaining the XCode project. This means that I often have to scan through the project (which is nearly 3000 files) to check whether anyone has added any new files, and if so I need to add them to the XCode project. This used to be very error prone, and take up to an hour. Now I can run this little utility and see at a glance.
<P>
TO USE :
Open the project you want to update in XCode, run the XCodeUpdate application, from the popup at the top of the window select the name of the project you want to scan (it reads the currently open projects from xCode) press the "Scan Project" button. Wait while your project is scanned. A tree view will appear in the man pane of the window - the tree indicates the hierarchy of your project, and only shows group folders that have "missing" files.
<P>
NEW IN VERSION 1.5 :
XCode Updater now checks for and displays files that have been removed from the project as well as files that have been added.<br>

There's plenty of room for improvement if anyone wants to :<br>
1) It would be good if you could optionally follow dependencies on other projects, and scan those other projects too. This shouldn't be too hard to do.<br>
2) It would be good if the program could automatically add the missing files to the project when you click a button. This was my original intent, but I didn't have time to work out how to do it.<br>
3) It would be nice if you could put an "ignore list" in a folder containing the names of files that you know shouldn't be in the project and you want to ignore. currently there are a load of hardcoded files for the most obvious things (like CVS folders etc) but often there are other things (eg. build folders) that you know you want to ignore and it's irritating that they show up everytime. I might do this at some point - it would be a nice idea if this was kept inside the actual ".pbproj" or ".xcode" folder for the project.
<p>
have fun - please send me any improved versions you make.
Release Notes:
This Version: 228 | All Previous Versions: 0 Show More files from this Author?
Reviews: [Add Your Review]
Generated in 0.136 secs | Total entries: 1933 | Views: 3315435