Saturday
Aug082009
Using XCode with SVN - some Gotchas
Saturday, August 8, 2009 at 12:01PM
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
Reader Comments (19)
It is informative and interesting post shared on the site because in the X code how to used and how to work also that can be know that and able to understand in this types X code.
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.
When using XCode to check out from a repository - you probably then want to tell XCode that the project is from that repository.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.
So nice and how to work X code and all the information described on the full information so that can be know that regarding post. Basically it is informative post shared on the site.
Søgemaskineoptimering
Regarding the post we can be used X code in which the development and more fantastic and interesting post shared on the site that can be more enjoy it. Mostly people are very like it.SEO
Nice efforts for all of them so that can be able to understand X code and more fantastic post shared on the site that can be able to used and understand also.
Hulmursisolering
The grateful and more fantastic post shared on the site because due to site that ca be used how to used the x code that can be able to understand and properly know about it.
zenithinkzt-280
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.
porno
Often people are used in this technology and more interesting technology. due to post that can be able to understand how to used it in this x code so nice and more fantastic techniques used in this site.
computer repair auckland
So nice and give the good services so that can be used and enjoy it in this software.Mostly are used in this technology and used it.
laptop repair
Nice and more fantastic and interesting site so that can be know in which used and good technology shared on the site so that can be enjoy it.
Linkbuilding
It is very fantastic technology shared on the site so that can be know that. Mostly are very like it and used in this technology. Give the good services so that can be used in this technology.zenithink zt-280
Define all the information in the post because how to used X code so that can be know that and able to understand regarding post. It is very nice and interesting post shared on the site.
Nokia Lumia 800
X coding is very useful because in the post has been published the x coding that can be able to understand and know that regarding post.
it outsourcing
In the post define about the how to used X code and how to work so that can be know that and able to understand regarding post. It is very nice and more interesting technology shared on the site can be know that regarding post.
services de référencement
Regarding post that can be know that how to used X coding and how to developed in this coding so that can be know that about described in the post. Mostly are very like it and enjoyment and used in this post.
Trade doors
When usingCode to check out from a repository - you probably then want to tell XCode that the project is from that repository.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.
it outsourcing
Very few people are aware about X code at present. So its such a nice that you have shared it here.
Miele S8 Ecoline
This is really good technology, all the developers are appropriate your blog because you also shear the uses of X code it extremely nice experience you shear with us.