解决:XCODE 4.2 无法连接SVN,提示:Unable to load revisions
>svn checkout SERVER_PATH FOLDER_PATH_TO_PUT_THE_PROJECT (实际可能是 svn checkout https://xxx.com/xx xxProject)
https://xxx.com/xx这个为服务器端地址,xxProject为项目名 --- (英文:
>svn checkout SERVER_PATH FOLDER_PATH_TO_PUT_THE_PROJECT
)
The reason Xcode4 does this is that it tries to log you into the SVN server with your mac credentials. When that fails, it basically just hangs and fails. The best solution I've seen so far is this:
open a terminal
If you don't have the project out do this:
>svn checkout SERVER_PATH FOLDER_PATH_TO_PUT_THE_PROJECT
It will then ask you for password for the mac username, you just write anything or nothing and press enter.
it will then fail and ask you for a username. Enter the correct one and then the password when it asks.
The project will be checked out, but you can just close the terminal window and delete the folder again if you want. Xcode4 will now connect without a hitch. :)
----------------------------------------------------------------------------------------------------------附录::SVN新增Repository过程:
1)打开Organizer界面,选择Repositories
2) 左下角单击 +,选择Add Repository
3) Name自己写个自己容易记住的
4)location处填写服务端的地址,如https://xxx.com/xx
5)type选择subversion(GIT书上说主要用于单机,暂未测试)
6)完成进入下一步 会提示你输入用户名密码
输入后可以看到左边的的配置显示为绿色,如果还是红色,并且右边显示Unable to load revisions,请按指示操作一遍;
7)之后Checkout,update的操作自己看文档去。