Xcode Source Control showing multiple Working Copies
version-control, xcode
Solution
Solved this by deleting xccheckout file under
ProjectName.xcodeproj > project.xcworkspace > xcshareddata
This had contained references to the previous repos.
Problem
Xcode is showing multiple working copies: ``` Working Copies myProject - master myProject_olderRepo myProject_originalRepo ``` The second two are greyed out. The original code was cloned in Sourcetree from the repo of a previous owner. Not knowing how to move the files into a new repo, I simply copied locally the entire project directory, and started work on them. Then I copied the contents of that reworked project directory into a folder linked to a repo to which others have access. When they clone the repo they get compile errors because modules (the two older repos) are missing. I have almost no experience of source control and Bitbucket et al, so I humbly ask forgiveness for anything completely stupid that I am doing. How do I remove those older working copies from Xcode's source control? Or is there some other way that others can then clone and compile the project without errors?