Xcode is showing multiple working copies:
Working Copies
myProject - master
myProject_olderRepo
myProject_originalRepo
The second two are g
If this issue happens when using CocoaPods try:
pod install
Not sure what happened here, I had one project but two working copies, similar to question. One of the working copies was synced with a repo on GitHub, and I had successfully pushed changes there. All I had to do, in the end, was to delete my local folder completely, then check out (clone?) from the remote repo on github again.
(I'm not sure but I got the feeling that Xcode and/or the Xcode project was NOT handling multiple working copies, but that this was done like a top layer in the git structure itself. Maybe it is a feature of git?)
I had two instances of the same project in my ProjectNavigator in XCode. One of them was marked with M and the other one with ?
All I had to do to get rid of the copy, was delete the project marked with ? by control-clicking on it and selecting delete.
Project.xcodeproj -> Show Package Contents
Project.xcworkspace -> Show Package Contents
xcshareddata
Open .xcscmblueprint file
Clean all content
Save file and open Xcode again
I have removed old repo using following steps.
Note : If your project have WorkSpace then Direct click on ProjectName.xcworkspace instead of ProjectName.xcodeproj
Follow the following steps:
1. Open terminal and go to your project directory
2. Run pod deintegrate in Terminal to remove Cocoapods from the project.
3. Run pod clean
4. Run pod install to create it again.
Open .xcworkspace, worked for me.