2013年5月9日 星期四

XCODE下使用SVN

在MAC Lion 10.7.5 XCode 4.6使用SVN 之前一直出問題

在改好code之後,file -> commit 卻會跳出

The operation could not be performed because no valid working copies were
found.

please verify that your files are under source control and try again.

好像一直無法連接到svn那端,

後來研究了發現這樣做可以解決:

1. 先用terminal 下指令 svn list server端svn的位置

2. 進入xcode-> window -> organizer-> Repositories

   ★若裡面已有加入的這個位置,請先刪掉重新點左下角 + -> Add Repository

3. 先checkout 下載你的檔案 若server端無檔案 就import你要的專案即可上傳。

4. 打開checkout的專案 修改 code 存檔。

5. File -> Source Control -> commit 即可連結上這個svn server位置 上傳定版的檔。

---
提供網路找到的別的方式 但我沒試過,因為我找不到svnserve.conf在哪  == =="


使用命令行修改代碼目錄下conf子目錄下的svnserve.conf配置文件
把anon-access=read改成anon-access=none.

如下:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = none
auth-access = write


沒有留言: