Home > Development > XCode and TFS 2010 Part 1 – Setting up TFS 2010

XCode and TFS 2010 Part 1 – Setting up TFS 2010

There have been many cases where i heard of users wanted to get XCode working with TFS 2010.

Obviously out of the box, XCode does not work with TFS 2010. However there is a way to make both of them talk 🙂

I’m outlining the steps below on how to configure both of them to communicate properly.

For those who are lazy to download from Codeplex, you can get the required files at http://cid-895931b65435bb3d.office.live.com/self.aspx/Public/SvnBridge%20-%20Files.zip

Step 1: Download SVNBridge from Codeplex

The first step is to configure TFS to have a SVN bridge. To do that, head down to http://svnbridge.codeplex.com/ and download the source files (DO NOT USE THE DOWNLOAD OPTION).

Once you downloaded all the source files, unzip them to a directory and run the build.bat

Once the build is complete, we have are ready to deploy the SVN website.

Step 2: Create a local user with read rights to the whole TFS

Login to your TFS server and create a local user e.g svnbridge

Step 3: Create folder for SVN bridge website

Now create a folder which will store the files for the SVN bridge (e.g c:\svnbridge)

Copy the files from SvnBridgeViaIis\bin to c:\svnbridge\bin

Copy SvnBridgeViaIis\web.config to c:\svnbridge

Open port 8080 on your firewall if neccessary

Edit c:\svnbridge\web.config

Change the TFSUrl to point to your TFS Server, e.g http://localhost:8080/tfs/DefaultCollection

Change DomainIncludesProjectName to False

Change LogPath to a path for the SVNBridge Logs

Update the ReadAllUser* properties to the local user you have just created

So now your web.config should look like

Step 4: Setup IIS

Run IIS Manager and Create a new website. The source directory should point to the svnbridge folder (e.g c:\svnbridge) and the port should be 8081

Click on the authentication tab and make sure that ONLY ASP.NET impersonation and digest authentication is enabled

Now goto Configuration editor and select the system.webServer/validation section

Set validateIntegratedModeConfiguration to false

Step 5: Install the Perfmon Counters

Open the SVNBridge solution and build the SvnBridge.PerfCounter.Installer project.

Run the SvnBridge.PerfCounter.Installer.exe found inside the bin\debug folder

Step 6: iisreset the system

Trigger an iisreset to flush everything and get it ready for SVN!

Categories: Development
  1. Jeff Johnson
    December 8, 2010 at 6:19 am

    Does not work with TFS 2010, it keeps asking me over and over for my login – this is just using TortoiseSVN on windows to do a checkout

  2. December 9, 2010 at 7:01 am

    Hi Jeff,

    It should not be asking you for passwords over and over again, can you check your IIS logs to see if there are any wierd activity?

    This is actually tested against the latest build of xcode rather than TortoiseSVN

    • December 18, 2010 at 9:32 am

      hmm just to rule out invalid login settings, you did set IIS to use digest auth and when you entered your userid/password, its with the domain or server name right e.g server\username

      also the file permissions for the folder where the files are should have read permissions for the IIS accounts

  3. Magne Roald
    December 15, 2010 at 12:12 am

    When is part 2 of this description coming?

    • December 17, 2010 at 11:44 pm

      once i’ve ironed out most of the wierd issues with xcode and tfs i will post part 2 🙂 should be within the next few weeks as i’m terribly busy at the moment

  4. Kavit Patel
    September 5, 2012 at 4:47 pm

    Images are getting corrupted one we check-in the images in to the repository in to TFS Server 2010.
    We are using Smart SVN 6.6 to check in the code and images from MAC OS Lion in to TFS Server 2010. Code is getting check in properly only images seems to be issue images format which we are using is PNG.

    • September 17, 2012 at 10:58 pm

      Hmm u should use the native Xcode svn integration rather than a 3rd party. Alternatively you might want to explore tfs 2012 which comes with a native svn endpoint

  5. February 19, 2013 at 3:07 pm

    I have a question where do we build the code on the TFS server machine or on any computer where we actually downloaded the SVN bridge code??

    • March 15, 2013 at 2:54 pm

      it actually doesnt matter, but typically you would put it in the same server as your tfs

  6. Salman Aziz
    January 16, 2014 at 6:14 pm

    just one question where to deploy svn bridge whether on SVN server or TFS server?

    • April 16, 2014 at 9:12 pm

      Hi, well good news is tfs 2013 supports git out of the box, so there is no need to hack something out using tfs 2010

  1. December 30, 2010 at 3:31 am
  2. December 30, 2010 at 5:30 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: