[英]How to a manage a multi-target project using GIT in Xcode?
We are working on a Xcode project that results in different apps on the AppStore. 我们正在研究一个Xcode项目,该项目在AppStore上产生了不同的应用程序。 Each app has its own target and is developed in its own GIT branch. 每个应用程序都有自己的目标,并在其自己的GIT分支中进行开发。 There is also a big chunk of code being shared among the targets (both in storyboards and viewcontrollers). 在目标之间(在情节提要板和视图控制器中)也共享了大量代码。 So the question is what is the best way to manage the branches? 因此,问题是管理分支机构的最佳方法是什么? Is it better to have all the branches merged into the master or it's better to have the shared chunk of the code in master and keep each target's code in its own branch as it is. 最好将所有分支合并到master中,还是将共享的代码块保留在master中,然后将每个目标的代码原样保留在自己的分支中。
PS: There is always a chance of creating a new target for a new app from the master branch. PS:总有机会从master分支为新应用创建新目标。
Use Master for everything, but when you make changes to something - spawn a new branch, and if the "shared code" is touched, then you have to be super careful about merges. 使用Master进行所有操作,但是当您对某些内容进行更改时-产生一个新分支,并且如果触摸了“共享代码”,那么您必须非常小心合并。 A good way to do this is to keep a constant safety branch for the shared code going. 这样做的一个好方法是为共享代码保持不变的安全分支。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.