Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

detach all working copies and reset all version history in Xcode 6.3

Tags:

git

xcode

svn

I have been working on an Xcode project (that is installed via adhoc installation, for internal use at my company) for a few years now and I had enabled source control since day 1. All was working perfectly until when iOS 8 was released, i decided to convert it into iOS 8 while leaving a backup on the project as it is. So, I renamed the original folder to bimpd_old and started modifying the new project. I am a beginner in git, and I didn't know that doing this might corrupt source control. After doing so (and while still working on both projects) my source control won't commit anymore complaing that the project is not under version control.

I tried many solutions on the internet that suggest deleting .svn/.git folders, disabling and reenabling source control, run git init, add *, commit.. I also tried deleting the bimPd.xccheckout EDIT: I already tried the solution from: How to disassociate working copy of an Xcode 5 project from SVN server that died with no success. Probably that solution works only for Xcode5 while my issue is in Xcode 6.3

I just want to lose all version history, detach/delete all working copies, and start new version control starting today.

How can I achieve that?

Notes:

  • At first, Xcode gave me a warning that svn needs to be updated.. I did it but still it wouldn't commit
  • I don't need online git (just local)
  • I stopped working on the old project.. and I don't need it anymore.
  • After all my tests and trials, it currently shows 3 working copies in my source control (when I enable it) and I only want one working copy (screenshot below)

working copies

  • At earlier stages, when I was trying to commit, xcode was giving me a warning that it's unable to commit to www.mydomain.com/bimpd (a custom svn that a friend had made on his site a long time ago) but i can't find this reference anywhere.. (because i have deleted all repositories)
  • Now when I try to commit, i get the following error: the working copy "bimpd.xcodeproject" failed to commit files (screenshot below)

commit error

like image 323
Dany Balian Avatar asked Dec 06 '22 22:12

Dany Balian


1 Answers

Check out this answer

Just navigate to "Your Project".xcodeproj > (Right Click & Show Package Contents) > project.xcworkspace > (Right Click & Show Package Contents) > xcSharedData > "Your Project".xccheckout

Right Click on the file and select Open with, and click on "More..". Use your preferred Text Editor to edit the XML inside, or you can always use the trusty TextEdit.

Your old git/svn servers are probably at the bottom, encased in . Just remove em and reload your project in Xcode.

like image 63
david72 Avatar answered May 20 '23 19:05

david72