简体   繁体   English

iPhone中同一应用的多个实例

[英]Multiple instances of same app in iPhone

I want to keep three instances of a same app in my iPhone for three different environments: qa, uat, and prod. 我想在iPhone中为三个不同的环境保留同一应用程序的三个实例:qa,uat和prod。

As per my knowledge, it can be achieved if I change the bundle identifier of each app. 据我所知,如果我更改每个应用程序的捆绑包标识符,就可以实现。

But if that is the case, I would have to create three different Provisioning Profiles and App Ids since I cannot use wild card (because the app involves APNS). 但是,在这种情况下,由于我无法使用通配符(因为该应用程序涉及APNS),因此我将不得不创建三个不同的配置文件和应用程序ID。

Is there any other means to achieve installation of the same app in the same iPhone without creating multiple App Ids and profiles? 是否有其他方法可以在不创建多个应用ID和配置文件的情况下在同一iPhone中安装同一应用?

What will be the best practice for this? 最佳做法是什么?

Note: It is a Cordova app which I am building for iOS (though it should not matter but still keeping informed) and the distribution certificate 注意:这是我正在为iOS构建的Cordova应用程序(尽管没关系,但仍保持了解)和发行证书

You will simply need to use three different bundle-identifiers. 您只需要使用三个不同的包标识符。 This can be set in the info.plist: CFBundleIdentifier . 可以在info.plist: CFBundleIdentifier设置info.plist: CFBundleIdentifier You may want to setup different target or schemes that use different versions of the info.plist . 您可能需要设置使用不同版本的info.plist不同目标或方案。

The best practice is the only practice, which is what you describe. 最佳实践是唯一的实践,这就是您所描述的。 Different versions of the app must have different bundle IDs. 不同版本的应用程序必须具有不同的捆绑软件ID。 If they get push notifications, that means different provisioning profiles, but that's a one time step which isn't difficult these days. 如果他们获得推送通知,则意味着不同的配置配置文件,但这只是一步,如今这并不困难。

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

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