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!
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
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
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
Hi,
When is part 2 of this description coming?
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
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.
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
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??
it actually doesnt matter, but typically you would put it in the same server as your tfs
just one question where to deploy svn bridge whether on SVN server or TFS server?
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