Xcode允許SVN管理項目文件教程
Xcode允許SVN管理項目文件教程是本文要介紹的內容,關于xcode相信友們并不陌生了,那么我們之間進入話題。Xcode是開發人員建立 Mac OS X 應用程序的最快捷方式,也是利用新的蘋果電腦公司技術的最簡單的途徑,而SVN是版本控制工具,本文主要是來講解SVN的操作,在網上搜了下,確實只能用如下步驟來進行:
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
小結:Xcode允許SVN管理項目文件教程的內容介紹完了,希望通過本文的學習能對你有所幫助!