Xcode/Git Repository Error: “Please verify that the working copy is reachable and try again.”

Xcode/Git Repository Error: “Please verify that the working copy is reachable and try again.”

折腾了半天,重启了n次,总算好了。这招没用上,下次有机会,试一下,放在这里备忘

Here are the steps I take.

  1. I open Xcode (4.3.3) organizer and select Checkout or Clone Repository
  2. I choose the location https://MyUsername@bitbucket.org/MyUsername/myrepo.git
  3. Press Clone button and it successfully clones it on my local disk
  4. So I open the local copy of the project and perform some changes to it.
  5. When I try to commit changes (or do any other git related operation) I get the following error:

The working copy "MyAppName" could not be reached.

Please verify that the working copy is reachable and try again.

However I can perform commits (and other types of git operations) without any issues from the Terminal app using command lines.

I've tried restarting my computer, deleting all Xcode settings, but nothing helped.

Update: I tried it again today and it works fine now. Maybe it's some sort of an intermittent bug in Xcode



Whenever this happens to me (and it happens often) I do the following:

1-Close the project2-Open the organiser3-Go into the repositories tab.

If your current working copy has been added to the list already, then within the organizer navigate to it, and double-click on the .xcodeproj project.This will re-open the project in XCode, and you'll find that now SCM operation will work fine.

If your current working copy hasn't been added to the list, press the + button in the bottom left corner, select "Add Working Copy", navigate to the folder containing the .xcodeproj and open this folder.

Now double click on the .xcodeproj file, the project will open in XCode.

And it's all working fine again...

No idea why this make things work... but it does

This is not exactly the answer you might be looking for, but I ran across similar problems when using Remote git repository (Github) and Xcode.

I ended up using a GUI tool "SourceTree", a good and easy to use tool to pull/push your code from Local Git to Remote Git Repository. Try it out http://sourcetreeapp.com/

share | improve this answer
 
I have the SourceTree app installed as well, but that's really a back up plan for me. I would really like to use Xcode, it has some great SCM features. Also, the fact that source control is integrated into the IDE makes a better workflow. –  Nikolozi Jul 9 at 1:31



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值