在多个开发人员之间共享 Xcode 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16939397/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:27:25  来源:igfitidea点击:

Share Xcode project between multiple developers

xcodeversion-control

提问by Alkalouti

I have a project and I want to work with another developer on the same project. I'm looking for a way to share the project between us, so that we can work on it parallel at the same time. I need it to work locally, without using an internet connection.

我有一个项目,我想在同一个项目上与另一个开发人员合作。我正在寻找一种在我们之间共享项目的方法,以便我们可以同时并行处理它。我需要它在本地工作,而不使用互联网连接。

采纳答案by kgdesouz

You already have Gitavailable to you inside of XCode. You can share your code and work on it on the same time using "branching" mechanisms.

您已经在 XCode 中使用了Git。您可以使用“分支”机制共享您的代码并同时处理它。

Bitbuckethas excellent FREE privatemode where you and 5 other people can share a Git repository. There are easy-to-use tutorialsavailable on their site. I would highly suggest using that.

Bitbucket具有出色的免费私有模式,您可以和其他 5 个人共享一个 Git 存储库。有易于使用的教程在其网站上提供。我强烈建议使用它。

I would steer away from using SVN, there are better tools for what you are looking for.

我会避免使用 SVN,有更好的工具可以满足您的需求。

回答by Nimrod Gutman

I'm a part of a 2-3 iOS developers team so I can give you a few tips from my experience on collaborating (we use git, I'm assuming you know a bit about. if not, read this), after you get the hang of it here are my thoughts -

我是 2-3 个 iOS 开发人员团队的一员,所以我可以根据我的协作经验给你一些提示(我们使用 git,我假设你知道一点。如果没有,请阅读本文),在你之后掌握它的窍门,这是我的想法-

  • Try to make as little change as you can to your project pbx file simultaneity, It'll result in a conflict almost every time
  • Don't be scared of branches, we're using them all the time, if you two are planning to work on different features of the same product try to do it in different branches
  • We had serious problems with storyboardsand collaboration - like pbx their content change even on open and merging those changes can be very tiring
  • 尝试对您的项目 pbx 文件同时进行尽可能少的更改,它几乎每次都会导致冲突
  • 不要害怕分支,我们一直在使用它们,如果你们两个打算开发同一产品的不同功能,请尝试在不同的分支中进行
  • 我们在故事板和协作方面遇到了严重的问题——比如 pbx,它们的内容即使在开放时也会发生变化,合并这些变化可能会非常累人

回答by Midhun MP

Why don't you use SVN ?

你为什么不使用 SVN ?

You can configure SVNin Xcodefor doing this. Also you can use Git.

您可以配置SVNXcode这样做。你也可以使用Git.

Check:

查看:

  1. Configuring Xcode to use subversion
  2. Git Source Control With Xcode
  1. 配置 Xcode 以使用 subversion
  2. 使用 Xcode 进行 Git 源代码控制

回答by George

Check this question How to set up an SCM in Xcode?. There you will get links about how to setup SCM for xcode

检查这个问题如何在 Xcode 中设置 SCM?. 在那里您将获得有关如何为 xcode 设置 SCM 的链接