Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9: Multiple Working Copies Git

I have Xcode 9.2 Version installed on my MacBook. Today when I tried to push new changes to my project, Git repo shows multiple working copies as shown in picture 1.

Picture 1

First one the actual working copies I have been using and the second one is an entirely different project in which I worked earlier. Whenever I try to push code to remote, it again shows those 2 working copies as shown in picture 2.

Picture 2

I tried to find the xcscmblueprint file and xccheckout file as mentioned in this question.

I tried

  • Cleared xcuserdata and xcshareddata folders
  • removed current project and cloned a new copy
  • Quit Xcode and restarted again
  • Restarted my mac

Can someone help me to identify exact problem and methods to fix this?

like image 677
Anand Avatar asked Apr 10 '18 04:04

Anand


1 Answers

Open Xcode -> click Preferences...

enter image description here

Now tap on Location tab then click on arrow same as below image enter image description here

delete folder DerivedData and reopen your project.

like image 103
Liolik Avatar answered Oct 21 '22 08:10

Liolik