Preventing 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 frankly, in addition to not getting Apple approval for publication, of course because you'll have to "kill" (with a abort()
) the app before it's done, that's a very bad workaround in any case and in any development area (it reminds me a lot when I did not want my sites to run on Internet Explorer).
My advice is: no use covering the sun with the sieve. Ideally, you should stay with the minimum version and try to find out what the flaws are with your application in the iOS 8.0 environment so you can solve them in a way that is not an impediment.
If you accept this idea, it will make your queries, searching and etc., because problem in a specific version of the operating system is more expensive than incompatibility of a certain code, which is totally apt to be solved.