简体   繁体   English

如何在Xcode中使用GIT管理多目标项目?

[英]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.

相关问题 多目标项目中的 GoogleService-Info.plist - GoogleService-Info.plist in a multi-target project 使用info.plist存储多目标应用程序的特定于目标的值 - Using info.plist for storing target-specific values for a multi-target app 多目标库在 SPM 上运行良好,但在使用 CocoaPods 构建时因“没有此类模块”而失败 - Multi-target library works fine with SPM, but fails with “no such module” when built with CocoaPods xcode项目中如何获取最小部署目标 - How to get the minimum deployment target in the xcode project 将目标添加到Xcode项目 - Adding a target to an Xcode project XCode:使用命令行工具,如何从文件夹创建git并将其导入项目中 - XCode : Using the command line tools, how do I create a git from a folder and import that on a project xCode仍在项目中删除了目标 - xCode removed target still in the project 如何在自定义Xcode项目模板中创建或定义新目标 - How to create or define a new target in a custom Xcode project template 如何为现有项目自动创建新的xcode目标 - How to create new xcode target automatically for existing project 使用Xcode项目与OS X框架目标和iOS静态库目标构建错误 - Build error using Xcode project with OS X framework target and iOS static library target
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM