简体   繁体   English

Xcode - 团队发展

[英]Xcode - Developing as a team

Dear fellow programmers, 亲爱的程序员,

Recently me and my partner have developed an application for the AppStore. 最近我和我的合作伙伴为AppStore开发了一个应用程序 It was our first iPhone app and it is doing quite good. 这是我们的第一个iPhone应用程序,它做得非常好。

But it wasn't done very professionally (One of us would have the master version of the project, then the other would send just the code for one calculator and the other person would have to manually add it in). 它并没有非常专业(我们中的一个人会拥有项目的主版本,然后另一个人只会发送一个计算器的代码而另一个人必须手动添加它)。 We had to do this because we had differing versions of XCode. 我们不得不这样做,因为我们有不同版本的XCode。

But now we both have the most recent version of XCode and are wondering if there is an easy way to develop as a team. 但是现在我们都有最新版本的XCode,并且想知道是否有一种简单的方法来开发团队。

Basically we are looking for a way that we could both have access to the main project, and keep it updated to the most recent version. 基本上我们正在寻找一种方法,我们都可以访问主项目,并将其更新到最新版本。

  • How would we do this? 我们怎么做?
  • What if we are working at the same time? 如果我们同时工作怎么办?
  • And any other tips would be appreciated! 任何其他提示将不胜感激!

Thank you for your time, and if you need any other information, I will gladly provide it! 感谢您的时间,如果您需要任何其他信息,我很乐意提供!

Sir Kaydian 凯迪恩爵士

You're looking for a version control system. 您正在寻找版本控制系统。 In the essence, that's a piece of software, from which both of you check out a working copy, with which you can do whatever you want...and once you're done, you check your changes back in, and the system merges the changes together. 从本质上讲,这是一个软件,你们两个都可以从中查看工作副本,你可以随意做任何事情......一旦你完成了,你就会检查你的变化,并且系统合并变化在一起。

That way, you can work on different aspects simultaneously, with both of you having the freedom to develop independently, without having to worry about the manual implementation. 这样,您可以同时处理不同的方面,您可以自由地独立开发,而无需担心手动实现。

Rather well known version control software includes 'Subversion', 'Mercurial' or 'Git'. 众所周知的版本控制软件包括'Subversion','Mercurial'或'Git'。 There are graphical frontends for most any VCS, which will allow you to get by, without having to learn difficult command line commands. 对于大多数任何VCS都有图形前端,这将允许您通过,而无需学习困难的命令行命令。

Please remember though, that the system will NOT do the 'thinking for you', so when you're both working at the same file, at the same spot, it will raise a conflict, which you will have to resolve manually. 但是请记住,系统不会“为你思考”,所以当你们同时在同一个文件上工作时,会引发冲突,你必须手动解决。

You have to set up a subversion. 你必须设置一个subversion。 This way you'll both be able to commit your code to repository that will always have most current version. 这样,您将能够将代码提交到始终具有最新版本的存储库。

http://osxdaily.com/2010/06/03/configuring-xcode-to-use-subversion/ http://osxdaily.com/2010/06/03/configuring-xcode-to-use-subversion/

Using Subversion in Xcode 在Xcode中使用Subversion

The very first thing is to setup a repository with your favorite source code management system (scm). 首先是使用您最喜欢的源代码管理系统(scm)设置存储库。 Most common are subversion and git, while git seems to be more popular, but a bit more complex to learn. 最常见的是subversion和git,而git似乎更受欢迎,但学习起来要复杂一些。

Xcode provides built-in support for both scm, but I recommend to use either the console (you learn a lot) or a dedicated app (you have more functions than in Xcode in a nice GUI). Xcode为scm提供内置支持,但我建议使用控制台(你学到很多)或专用应用程序(在一个漂亮的GUI中你有比Xcode更多的功能)。

git scm git scm
Subversion 颠覆

The next step is to set up an issue tracking system to keep track of bugs you, your users, or other testers have discovered. 下一步是设置问题跟踪系统,以跟踪您,您的用户或其他测试人员发现的错误。 You can also describe new features or architectural changes you plan for. 您还可以描述您计划的新功能或体系结构更改。 Common systems are trac, Jira or pivotal tracker. 常见系统是trac,Jira或关键跟踪器。

You can use git or svn with Xcode Source Control feature. 您可以将gitsvn与Xcode源代码控制功能一起使用。

You can find all the basic commands like commit, update, merge, push, pull etc. under the File > Source Control menu. 您可以在File> Source Control菜单下找到所有基本命令,如提交,更新,合并,推送,拉取等。

And you can manage your repositories from the same menu. 您可以从同一菜单管理您的存储库。

You can see all the revisions using version editor: View > Version Editor > Show Version Editor 您可以使用版本编辑器查看所有修订:“ 视图”>“版本编辑器”>“显示版本编辑器”

Do you happen to have any kind of source control in place, because it doesn't sound like you do? 你碰巧有任何类型的源代码控制,因为它听起来不像你吗?

I'd look into getting started familiarizing yourself with a revision control system such as Git and hosting your project on a site like GitHub that way you two can collaborate on your project. 我开始考虑开始熟悉 Git等修订控制系统,并在像GitHub这样的网站托管您的项目,这样您就可以在项目上进行协作。 There's a bit of a learning curve, but once you get over the hurdles you'll never understood how you lived without it. 有一点学习曲线,但是一旦你克服了障碍,你就永远无法理解你没有它的生活方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM