Main | Resizing a Fedora 8 Vmware Fusion image »
Saturday
Aug082009

Using XCode with SVN - some Gotchas

I mainly do Java development using Eclipse with SVN but recently I've been playing around with a bit of iphone development using XCode.

I've included some below some Gotchas about using XCode with SVN in the hope that it might save someone else making the same mistakes as me...

  • The left hand navigator pane in xcode labelled files and groups does not show a filesystem view of the folder containing the project files.
  • XCode projects need files adding in manually - the project structures does not have to match file system directory structures at all.
  • You will probably want to exclude the build directory - XCode will not do this for you.
  • Be aware that's it's easy to accidentily create links to files in the projects rather than putting the files into the project folder itself. Make sure when you drop a file into the project that you are copying it into the actual project and not just linking to an external file.
  • Committing the files to version control. When you are committing you will probably also want to commit the project file itself, you may this file if you aren't looking for it but it should show up in the SCM section. This file contains the list of all the files that are actually in the project, so if you don't commit this then the files will all be under version control but when you checkout the project on a fresh machine the files won't be included in the project, probably leaving the project with breakages.
  • New files that are placed in the project will not be added to version control even if the parent folder is already under version control and the entire project was checked out from an SCM such as SVN originally.
  • When using XCode to check out from a repository - you probably then want to tell XCode that the project is from that repository.
  • There is no way to get a graphical project level diff within Xcode, such as the syncronization view in Eclipse which helps you to merge and rollback changes prior to doing a commit. File level diffs can be done and to get an idea what files in the project have changes you can right-click the groups and files header on the left hand navigation panel and select SCM, this put a letter next to files depending on their state.
  • You may want to exclude your user files inside foo.xcodeproj/blah.pbxuser as this has user specific settings

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (10)

I bought a Java book recently to start working with it, and what you said is really helpful. Nike Air Max Greetz.

December 2, 2009 | Unregistered CommenterEmma

I want to say that a trustworthy essay writing service seems a light on the way of term paper essays creating. Hence, all people can utilize it every time they would like to buy essay.

February 22, 2010 | Unregistered CommenterGracemZ18

Make your life more simple get the mortgage loans and everything you want.

April 1, 2010 | Unregistered Commenterloans

Some time before, I needed to buy a house for my organization but I did not earn enough money and couldn't purchase anything. Thank goodness my mate adviced to try to get the business loans from trustworthy bank. Therefore, I did that and was happy with my credit loan.

April 4, 2010 | Unregistered Commentermortgage loans

I opine that to get the loans from banks you must have a good motivation. However, once I have received a collateral loan, because I was willing to buy a building.

June 28, 2010 | Unregistered Commentermortgage loans

Gucci outlet Gucci outlet
Coach outlet Coach outlet
Gucci handbags Gucci handbags
Coach outlet online Coach outlet online
Coach factory outlet Coach factory outlet
Coach outlet store Coach outlet store
Gucci outlet online Gucci outlet online


This article is written by zocy003 on 2010-7-22 http://www.coachoutletmalls.com

July 22, 2010 | Unregistered CommenterCoach outlet

coach outlet
coach outlet
coach handbags
coach factory outlet
coach factory outlet store
coach outlet


Thanks for your sharing! great helpful!!!I am pleased to share my joy with you? 2010-07-22

July 22, 2010 | Unregistered Commentercoachoutletfactory

I think you all notice that tomorrow is 2010 Father’s Day. replica ross bell watches,To show your worship and respect, a kind of favorable gift is a must. Assume you are still seeking for the right gift, the high quality A. Lange& Sohne must be your ideal selection.

July 28, 2010 | Unregistered Commenterivan.watcheslux

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>