简体   繁体   English

如何在IOS中分发同一应用程序的不同版本

[英]How to distribute different versions of the same app in IOS

I need to have two different versions or more of the same IOS app with new versions for ios7, ios6, like wise. 我需要有两个不同版本或更多相同的IOS应用程序与ios7,ios6的新版本,就像明智的。 So devices which is not compatible of handling the ios7 will get the ios6 version app. 因此,处理ios7不兼容的设备将获得ios6版本的应用程序。 Is this possible, how will the app id be for such situation. 这是可能的,应用程序ID将如何适用于这种情况。

There are 2 options here 这里有2个选项

  1. Release 1 app with the same bundle identifier that has runtime checks for OS Version and acts accordingly Release 1 app具有相同的包标识符,该标识符具有OS版本的运行时检查并相应地执行操作
  2. Make 3 targets of the same app with different bundle identifiers, names and deployment targets, and sell them separately on the iTunes store. 使用不同的包标识符,名称和部署目标制作同一应用的3个目标,并在iTunes商店中单独销售。

I would highly recommend implementing #1. 我强烈建议实施#1。 You can check the iOS version at runtime using 您可以使用运行时检查iOS版本

[[UIDevice currentDevice] systemVersion]

It is possible to have a lite version and a full version of your app that is fine just create two different targets in xcode. 可以有一个精简版和完整版的应用程序,只需在xcode中创建两个不同的目标。

For having a completely different versions for iOS I'm sorry but unless you do this in your code and change based on checking the iOS version being used this isn't possible to create different targets for different deployment versions (iOS versions). 对于拥有完全不同的iOS版本,我很抱歉,除非您在代码中执行此操作并根据检查所使用的iOS版本进行更改,否则无法为不同的部署版本(iOS版本)创建不同的目标。 If you put your deployment target as iOS 6 it will also run on iOS 7 there is no way of stopping that and the same would be if it was set to iOS 5 it will run on iOS 6 and iOS 7 and it is your responsibility to make sure it does work on these iOS versions no one elses. 如果您将部署目标设置为iOS 6,它也将在iOS 7上运行,则无法阻止它,如果将其设置为iOS 5,它将在iOS 6和iOS 7上运行,您有责任确保它适用于这些iOS版本,没有人可以使用。

As an additional note from the 1st February all apps submitted to the Apple App Store Review process must be iOS 7 optimized https://developer.apple.com/news/index.php?id=12172013a 作为2月1日的补充说明,提交到Apple App Store审核流程的所有应用必须是iOS 7优化的https://developer.apple.com/news/index.php?id=12172013a

You can check the iOS version a couple of ways: 您可以通过以下两种方式检查iOS版本:

1) Many check the current device system version [[UIDevice currentDevice] systemVersion]; 1)许多检查当前设备系统版本[[UIDevice currentDevice] systemVersion];

2) Are some like to check the NSFoundationVersionNumber 2)有些人喜欢检查NSFoundationVersionNumber

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

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