ios 从 Xcode 5 导入 SVN 中的项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19180718/
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
Import a project in SVN from Xcode 5
提问by Mattia Lancieri
In xcode 4 organizer there was a button "import", in xcode5 how do I import a project in my svn repository?
在 xcode 4 组织者中有一个按钮“导入”,在 xcode5 中如何在我的 svn 存储库中导入项目?
thanks
谢谢
回答by Tommie C.
The question is a bit confusing so please advise if it's not exactly what you need (otherwise, feel free to accept the answer). The confusion is that the Xcode 4 workflow you describe is used to allow developers to manage repositories (svn or git). If you want to take an Xcode project and add it to an existing svn repository I am attaching links to answers for that question.
这个问题有点令人困惑,所以如果这不是您所需要的,请告知(否则,请随时接受答案)。令人困惑的是,您描述的 Xcode 4 工作流程用于允许开发人员管理存储库(svn 或 git)。如果您想获取一个 Xcode 项目并将其添加到现有的 svn 存储库中,我将附加指向该问题答案的链接。
Adding Xcode Projects to SVN:
将 Xcode 项目添加到 SVN:
High-level Concepts (Xcode 4 Workflow in Xcode 5):
高级概念(Xcode 5 中的 Xcode 4 Workflow):
- Tell Xcode 5 about a repository (it will auto detect the type of svn or git)
- Check-out the repository for insertion into a different project
- 告诉 Xcode 5 有关存储库的信息(它将自动检测 svn 或 git 的类型)
- 检出存储库以插入不同的项目
Background:
背景:
In Xcode 4.6.3 there was a repository area of the organizer. This is where subversion and git projects were managed.
在 Xcode 4.6.3 中有一个管理器的存储区。这是管理 subversion 和 git 项目的地方。
New Workflow:
新工作流程:
The new location for this information in Xcode 5 is in Xcode > Preferences > Accounts > Repositories (menu on the left) > (+) Add Repository... (on the lower left)
Xcode 5 中此信息的新位置位于 Xcode > Preferences > Accounts > Repositories(左侧菜单)> (+) Add Repository...(左下角)
Once selected one may enter a repository address (local or external):
选择后,可以输入存储库地址(本地或外部):
And give the repository a directory name (credentials for many public read only repos are optional):
并为存储库提供一个目录名称(许多公共只读存储库的凭据是可选的):
With Xcode 5, one can then download the repository to a target folder by going to menu Source Control > Check Out...
使用 Xcode 5,然后可以通过转到菜单 Source Control > Check Out... 将存储库下载到目标文件夹。
As part of the checkout wizard one will be authenticated to the repository:
作为结帐向导的一部分,将向存储库进行身份验证:
Select a target folder to store the local repo:
选择一个目标文件夹来存储本地存储库:
Edit basic repo properties:
编辑基本 repo 属性:
For more information on adding projects to repositories:
有关将项目添加到存储库的更多信息:
回答by Nostradamus
As far as I can see, you need to know the exact path to be able to check out a project. This seems like a step backwards.
据我所知,您需要知道确切的路径才能签出项目。这似乎是一种倒退。