博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

LINK:http://www.cnblogs.com/gloolo/archive/2011/12/20/2295232.html

解决方法:

1)打开“终端” ---(英文:open a terminal)
2)输入 >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
3)系统将提示你输入密码,随便输入一个,然后回车
4) 系统提示你输入用户名,输入正确的用户名
5)系统提示你输入密码,输入正确的密码,然后项目将会被checkout.
6)这是你可以关掉该窗口了(至于文件存哪里了,我还要研究下)
7)重新打开XCODE,然后按照附录重新添加一个repository,不成功的话再重开下XCODE试下
>>>>>>>>>>>>>>>>>>
解决方法(原文):
There are a lot of links, but no solution posted directly here, so I'll do it.

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的操作自己看文档去。