My xcode project has two repositories listed under the Source Control menu. One of them is a repository from an old project and should not be associated with the current project. However, I can not figure out how to remove it from the project.
NOTE: I have already removed this repository from Organizer.
Any help would be greatly appreciated.
I did this by manually editing the .xccheckout
file.
Here are the steps that should work for you:
project.xcworkspace
file, and select "Show Package COntents"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).xccheckout
file in your favorite plain-text editor - this is a plist.IDESourceControlProjectWCConfigurations
key, and look for the <dict>
that has the name of the repository that you want to remove.<dict>
there is a key IDESourceControlWCCIdentifierKey
whose value contains an identifier that looks like a UUID - this string identifies the repository.<dict>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With