`

xcode svn

    博客分类:
  • ios
阅读更多
  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.
  4. Now delete your local copy (or move it to another location just in case).
  5. Finally CHECKOUT the project from subversion (this will create the subversion .svn folders, …).
  6. Reselect the subversion repository for this project.
  7. Commit the entire project.

 

 

第一步,配置Subversion
Xcode中SVN使用时需要配置Subversion。Leopard中自带了SVN,但Xcode的项目文件中,并不是所有文件都适于加入SVN中进 行管理,比如编译后的文件和编译过程中产生的文件,这些文件不属于源代码,应该告诉svn忽略掉,方法:编辑~/.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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics