Ionic:管理多个iOS版本 [英] Ionic: Managing Multiple iOS Builds

查看:82
本文介绍了Ionic:管理多个iOS版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个离子应用程序,正在为不同组织构建同一应用程序的多个版本。 gulp脚本会替我替换掉所有assets / config.xml。这对于android来说效果很好,因为我将apk签名后输出到了单独的文件夹中,但是我不确定如何在iOS上执行相同操作。

I have an ionic app I'm using to build multiple versions of the same app for different organizations. A gulp script swaps out all the assets/config.xml for me. This has worked pretty well for android, as I have the apks outputted into separate folders when they're signed, but I'm not sure how to do the same with iOS.

是否可以指定项目的输出路径,以便我可以将所有项目设置分开?每次我为其他组织构建应用程序时,我都不得不更改证书,配置文件等。

Is there a way to specify the output path of the project so I can keep all the project settings separate? I'd hate to have to change the certificates, provisioning profile, etc. every time I build an app for a different org.

推荐答案

我建议对这种类型的版本管理使用Git和分支。

I would suggest using Git and branches for this type of version management.

主分支,您在其中进行所有应用程序都会利用的所有通用开发。

A master branch where you do all generic development which all apps will take advantage of.

每个组织的分支机构。每当您对组织进行特定更改时,请签出其分支机构,将主分支合并到其中(以了解通用更改的最新信息),然后进行特定更改。

A branch for each organisation. Whenever you make specific changes for an organisation, checkout their branch, merge master into it (to get up to date with generic changes) and then make the specific changes.

有github上有一些很棒的git指南: https://guides.github.com/

There are some great git guides via github: https://guides.github.com/

这篇关于Ionic:管理多个iOS版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆