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 | #1

    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 | #2

    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 | #3

      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 | #4

    Hi,
    When is part 2 of this description coming?

    • December 17, 2010 at 11:44 pm | #5

      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

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

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 )

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

Follow

Get every new post delivered to your Inbox.