iphone ios svn 配置教程(xocode 4.1)

1.xcode4.1 配置svn填写完地址后提示 host is unreachable,
解决办法: /private/ets/hosts文件配置你的svn IP 为一个自定义的主机名,然后在Xcode 中写入。
比如svn://192.168.32.132/aaa是我的服务器地址
改hosts文件 加一行192.168.32.132 svnserver
然后你xcode中就写svn://svnserver/aaa 


2.修改host,终端更改 
这种好像是网路上说的最多的方法. 
在应用程序里面打开终端(terminal),输入 
sudo vi /etc/hosts 
然后提示输入系统密码 
hosts文件就自动打开了 
接着输入 i 
进入编辑模式 
将添加的网站,ip拷贝进去 
编辑完成之后,按esc,输入 : wq 
这样就更改完成了. 


3.用以上方法没成功,又试验了新的方法

I solved the problem this way

1.open a terminal

2.type 'svn list svn://~~~paths'

ie. "NJW-Mac:~ bluepin$ svn list svn://192.168.0.184/BMA"

3.You will need to enter PCUserPassword,svnUserID,svnUserPassword

4.U should see output from the svn list command which means you were able to connect to the SVN server

5.return to xcode4

6.try again your job(connect Repositories)

If u access your SVN repository from the terminal once it should allow you to connect to the repositories using Xcode (I suspect the subversion credentials have to be cached somewhere).


发现,svn地址里不用写端口号,我原来是10066,去掉就行了。



5.如果svn地址是https会遇到问题:The certificate is not issued by a trusted authority

I spent an age trying to work out why i couldn’t check out my code from a SVN REPO.

So turns out Xcode will not allow you to download from a SVN source that uses a untrusted SSL certificate.

You would get an error similar to: The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!

So how to work around this?

Open up a terminal window, and begin a manual attempt at downloading the SVN repo with something like this..


svn co https://........

you will then be prompted to reject, accept or permanently trust this certificate..

Hope this helps some poor soul..



4. mac 下删除svn隐藏目录

cd /some/of/your/folders/
rm -rf `find . -type d -name .svn`


希望各位能支持一下我们的网站:http://t.cn/zOdAUxJ  提提意见 



你可能感兴趣的:(ios,SVN,xcode,iPhone,Terminal,credentials)