Xcode 5,将项目导出到 SVN 存储库 [英] Xcode 5, Export Project to SVN repository
问题描述
在以前的 Xcode 版本中,Organizer 中有一个存储库部分,现在 Xcode 5 中没有.如何在 Xcode 5 中将项目导出到 SVN.
In previous version of Xcode there was a repository section in Organiser which is now missing in Xcode 5. How to export project to SVN in Xcode 5.
推荐答案
一种方法是使用 svn 客户端.一个明显可用的是命令行 svn 客户端.所以这是我如何使用它:
One way is using an svn client. The one which is obviously available is the command line svn client. So here's how I use it:
我们的存储库是:https://myserver.me.com/svn/使用 Xcode->Preferences->Accounts 将存储库添加到 Xcode.
Our repository is: https://myserver.me.com/svn/ The repository is added to Xcode using Xcode->Preferences->Accounts.
- 在 Xcode 5 中创建一个新项目:$HOME/IOS/Projects/MyProject
- 关闭项目或者甚至更好地关闭 Xcode 以避免 Xode 干扰 svn.真的.
打开终端并将目录更改为项目文件夹
- Create a new project inside Xcode 5: $HOME/IOS/Projects/MyProject
- Close the project or maybe even better close Xcode to avoid Xode interfering with svn. Really.
Open a terminal and change directory into the projects folder
cd $HOME/IOS/Projects
将项目导入svn:
Import the project into svn:
svn import -m "New Import" MyProject/ https://myserver.me.com/svn/trunk/MyProject
再次签出项目以创建工作副本
Checkout the project again to create a working copy
svn co https://myserver/svn/trunk/MyProject MyProject
在 Xcode 中重新打开项目并享受 svn.该项目现在是存储库的一部分.
Re-open the project in Xcode and enjoy svn. The project is now part of the repo.
这篇关于Xcode 5,将项目导出到 SVN 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!