在网上搜了下,确实只能用如下步骤来进行:
1) Create the project in XCODE.
2) Setup subversion in XCODE and select the subversion repository for this project.
3) Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository.
5) Now delete your local copy (or move it to another location just in case).
6) CHECKOUT the project from subversion (this will create the subversion .svn folders, …).
7) Reselect the subversion repository for this project.
但是有些文件是不需要上传的,所以可以通过命令行来设置过滤掉:也是网络收集,这个没验证过.改天在试...
编辑 ~/.subversion/config 文件
1. 找到 global-ignores 一行,去掉注释,编辑成
global-ignores = build *~.nib *.so *.pbxuser *.mode *.perspective*
Xcode项目文件中有些文件是文本文件,需要告诉SVN,因为SVN能更好地管理文本文件(谁用谁知道)
2. 找到 enable-auto-props = yes 把注释去掉,在[auto-props] Section声明以下文本文件
*.mode* = svn:mime-type=text/X-xcode
*.pbxuser = svn:mime-type=text/X-xcode
*.perspective* = svn:mime-type=text/X-xcode
*.pbxproj = svn:mime-type=text/X-xcode
出处:
1.http://note19.com/2009/03/17/xcode-subversion-error-155007-path-is-not-a-working-copy-directory/
2.http://macos.it168.com/archiver/tid-9126.html