Xcode 5,将项目导出到 SVN 存储库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18894195/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 5, Export Project to SVN repository
提问by TechFanatic
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.
在以前版本的 Xcode 中,管理器中有一个存储库部分,现在 Xcode 5 中没有。如何在 Xcode 5 中将项目导出到 SVN。
回答by Robert
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:
一种方法是使用 svn 客户端。一个明显可用的是命令行 svn 客户端。所以这是我如何使用它:
Our repository is: https://myserver.me.com/svn/The repository is added to Xcode using Xcode->Preferences->Accounts.
我们的存储库是:https: //myserver.me.com/svn/存储库使用Xcode->Preferences->Accounts添加到 Xcode 。
- 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
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
Re-open the project in Xcode and enjoy svn. The project is now part of the repo.
- 在 Xcode 5 中创建一个新项目:$HOME/IOS/Projects/MyProject
- 关闭项目或者甚至更好地关闭 Xcode 以避免 Xode 干扰 svn。真的。
打开终端并将目录更改为项目文件夹
cd $HOME/IOS/Projects
将项目导入svn:
svn import -m "New Import" MyProject/ https://myserver.me.com/svn/trunk/MyProject
再次签出项目以创建工作副本
svn co https://myserver/svn/trunk/MyProject MyProject
在 Xcode 中重新打开项目并享受 svn。该项目现在是回购的一部分。
回答by Jayprakash Dubey
Select Source Control -> Check Out…
This shows a “Check Out” dialog.
选择Source Control -> Check Out…
这将显示“签出”对话框。
Select SVN from Recents or Repositoriestab.
从“最近”或“存储库”选项卡中选择 SVN 。
Now, select the directory in which to check out the project.
现在,选择检出项目的目录。
Click on “Check Out”. This updates the local project to remote SVN.
点击“退房”。这会将本地项目更新为远程 SVN。
回答by Ayaz
please refer this.
请参考这个。
and on click on setting btn you can import and export also.
并单击设置 btn 您也可以导入和导出。
回答by rakmoh
In XCode 5, you can add/view repositories at Xcode->Preferences->Accounts. You can also view/enter the repository at "Source Control"->"Check Out..."
在 XCode 5 中,您可以在 Xcode->Preferences->Accounts 添加/查看存储库。您还可以在“源代码管理”->“签出...”中查看/输入存储库