<p>Working on implementing TFS throughout our organization.  It is easy to integrate with <code>.NET</code> projects and any platform that uses Eclipse or a derivative of Eclipse for editing.<br>
What's the best way to use TFS version control with Xcode (now that I find out we need to write some iPhone apps)?</p>

[{'answer_id': 70410, 'author': 'Chris Hanson', 'author_id': 714, 'author_profile': 'https://Stackoverflow.com/users/714', 'pm_score': 2, 'selected': False, 'text': '<p>One way would be to use the Team Foundation System client under Windows in VMWare, and check out (or whatever TFS calls it) your sources to a directory on your Mac that\'s shared with the virtual machine.  It also looks like <a href="http://www.teamprise.com/" rel="nofollow noreferrer">Teamprise</a> has a Team Foundation client for Mac OS X built atop Eclipse that would be worth looking into.</p>\n\n<p>That said, I\'d very strongly encourage you to use a <strong>natively</strong> cross-platform source code management system like Subversion or Perforce instead of a platform-specific silo like Team Foundation System for your company\'s soruce code, especially since you\'re going to be doing multi-platform development.</p>\n\n<p>While you\'re not likely to share code between a .NET application and an iPhone application, having full cross-platform access to things like design documents can be really important.  Mac OS X 10.5 and later include Subversion, Perforce is readily available, and both Perforce and Subversion are natively supported by the Xcode IDE.  Subversion in particular is also more likely to be familiar to experienced Mac and iPhone developers you might bring onto your projects as you ramp up.</p>\n'}, {'answer_id': 71082, 'author': 'Martin Woodward', 'author_id': 6438, 'author_profile': 'https://Stackoverflow.com/users/6438', 'pm_score': 4, 'selected': False, 'text': '<p>Xcode integration is something that we at <a href="http://www.teamprise.com" rel="noreferrer">Teamprise</a> have been looking into a lot. One of the main problems for us is that Apple does not provide a version control API that we can hook into to add a new version control system to Xcode - for integrated version control it is either the systems that Apple provide access to or nothing at the moment.</p>\n\n<p>That said, we do have a number of customers who develop in Xcode for TFS.  They either use <a href="http://www.teamprise.com/products/explorer/" rel="noreferrer">Teamprise Explorer</a> (which is a standalone GUI client to TFS compiled as a Universal Binary) or they have macros inside Xcode that perform basic check-out and get operations in-conjunction with the <a href="http://www.teamprise.com/products/clc/" rel="noreferrer">TFS command line (tf)</a>.  It\'s obviously not the ideal experience but acceptable for them.  The stand-alone GUI has the advantage that you can do all the work item tracking stuff there as well and integrate this with your check-ins.</p>\n\n<p>Sorry if this is a very "marketing" type answer - just trying to let you know what our current customers do with Xcode.  If you want more details around the macro approach then let me know.</p>\n\n<p>Hope that helps,</p>\n\n<p>Martin.</p>\n'}, {'answer_id': 458039, 'author': 'Encryptic', 'author_id': 31815, 'author_profile': 'https://Stackoverflow.com/users/31815', 'pm_score': 2, 'selected': False, 'text': '<p>Perhaps SVNBridge will do the trick, it\'s an open source used at CodePlex (Microsoft\'s Open Source Hosting). Check it out here: <a href="http://www.codeplex.com/SvnBridge" rel="nofollow noreferrer">http://www.codeplex.com/SvnBridge</a></p>\n\n<p>I have limited experience with it other than using it briefly to connect to CodePlex.</p>\n'}, {'answer_id': 7591152, 'author': 'Scott White', 'author_id': 120041, 'author_profile': 'https://Stackoverflow.com/users/120041', 'pm_score': 0, 'selected': False, 'text': "<p>The biggest problem with this is that Xcode only runs on OS X and TFS client tools only run on Windows.  If you're host operating system in OS X and you have a Windows virtual environment running locally (like Parallels or VMFusion) then you could use Team Explorer or the command-line tools to work with the repository.</p>\n\n<p>But this is a lot of work just to use a really dated version control system. If you don't have to use TFS I would probably use SVN or something else with native OS X support.</p>\n"}, {'answer_id': 12120893, 'author': 'Sergey Kucher', 'author_id': 520535, 'author_profile': 'https://Stackoverflow.com/users/520535', 'pm_score': 2, 'selected': False, 'text': '<p>Few week earlier announced <a href="http://gittf.codeplex.com/" rel="nofollow">Git-tf</a> by codeplex could do the job.</p>\n'}, {'answer_id': 19292666, 'author': 'Indra', 'author_id': 1699323, 'author_profile': 'https://Stackoverflow.com/users/1699323', 'pm_score': 1, 'selected': False, 'text': '<p>Follow this links, its raeally helpful:</p>\n\n<p><a href="https://www.visualstudio.com/get-started/cross-platform/share-your-xcode-projects-vs" rel="nofollow">https://www.visualstudio.com/get-started/cross-platform/share-your-xcode-projects-vs</a></p>\n\n<p>After that Check-in your existing xCode project code into TFS</p>\n\n<p>On your Mac, download and extract <a href="http://www.microsoft.com/en-us/download/details.aspx?id=30474" rel="nofollow">www.microsoft.com/en-us/download/details.aspx?id=30474</a>. I placed it in <code>/users/{myuseraccount}/git-tf</code></p>\n\n<p>Open Terminal and run the following commands</p>\n\n<pre><code>export JAVA_HOME=/Library/Java/Home\nexport PATH=$PATH:$JAVA_HOME/bin:/git_t\nexport PATH="/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/":$PATH\nexport PATH="/Users/{myuseraccount}//Git-Tf/":$PATH\n</code></pre>\n\n<p>change the working directory to your xCode project folder:  </p>\n\n<p>e.g.: <code>cd “/users/{myuseraccount}/documents/xCode Projects/testproject1/”</code></p>\n\n<p>In terminal fire commond:</p>\n\n<pre><code>- git remote add origin url//companyName.visualstudio.com/DefaultCollection/_git/xyz\n</code></pre>\n\n<p>and than </p>\n\n<pre><code>git push -u origin --all\n</code></pre>\n\n<p>It\'ll directly push your project into Visual studio TFS server..!!!!</p>\n'}]
['https://Stackoverflow.com/questions/70313', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']