xcode remove repository from project xcode remove repository from project xcode xcode

xcode remove repository from project


I did this by manually editing the .xccheckout file.

Here are the steps that should work for you:

  1. quit Xcode, and make a backup of your project file.
  2. in the Finder, right-click on your project file and select "Show Package Contents"
  3. right-click on the project.xcworkspace file, and select "Show Package COntents"
  4. in the folder named xcshareddata, there is a file with the extension .xccheckout (it should have the same name as your main project file, but with the .xccheckout extension)
  5. make a backup of this file
  6. open the .xccheckout file in your favorite plain-text editor - this is a plist.
  7. find the IDESourceControlProjectWCConfigurations key, and look for the <dict> that has the name of the repository that you want to remove.
  8. in the same <dict> there is a key IDESourceControlWCCIdentifierKey whose value contains an identifier that looks like a UUID - this string identifies the repository.
  9. search the entire file for key/string pairs that have the ID as the key.delete all these pairs.
  10. delete the <dict>
  11. save the file
  12. re-open the project in Xcode, and make sure everything is good.

If it is still showing up, make sure that none of the files in your project are located in the directory of the old repository (via an absolute file reference). You can investigate this by opening up the main file project.pbxproj, which is inside your project file.

You can also test this out by temporarily renaming the root folder (in the Finder) of the old repository, and if the repository no longer shows up in the Source Control menu, then you have a file in your project that is located in that old repository.


  1. Close XCode.
  2. Open Terminal.
  3. Navigate to the root directory of the project.
  4. Type find ./ -name .svn -exec rm -rf {} \;.
  5. Open your project.

Your project should be disconnected from all repositories. Now you may connect your project to the desired repository through Source Control -> Configure Project.

NOTE: The command searches for all filenames with extension .svn and removes (recursively and forcefully) all of them.


You will have to manually remove the svn files from the old directory. This will be done using svn commands. You can find the commands below. How do you remove Subversion control for a folder?