Preventing the installation is not possible, but in AppDelegate
you can check the version of the device and prevent it from completing the opening according to the version of the operating system.
var systemVersion = UIDevice.currentDevice().systemVersion();
But to be frank, in addition to not getting approval from Apple for publication, naturally because you will have to "kill" (with a abort()
) the application before completing the opening, this is a workaround very bad in any case and in any development area (reminds me a lot when I didn’t want my websites to run on Internet Explorer).
My advice to you is, there’s no point in covering the sun with a sieve. The ideal is for you to stay with the minimum version and try to locate what failures occur with your app in the iOS 8.0 environment so you can fix them so that this is not an impediment.
If you accept this idea, it will make your asking, researching and etc, because problem in a specific version of the operating system is more expensive incompatibility of a certain code, which is fully fit to be solved.
I suggest you check and repair the bugs. If you prevent the app from running in version 8.0, there’s a good chance that Apple will reject it if Reviewer tests it in 8.0.
– André Ribeiro
So @Andréribeiro, this is tense, in the simulations that were made and tests here, everything is OK, but has user reporting problems, which version of iOS is 8.0. On an iPhone 5
– Gian