简体   繁体   中英

Q: Different version between Development and Deployment iOS

Quick question : When I build my apps the standard version of iOS is 10.0 for minimum requirement and iPhone 5. If I tried to deploy it into 9.0 and iPhone 5 as the minimum standard, will it effect anything ? like lack of performance or maybe I can't use the apps? Or I have to write a specific code into my apps to run that things ? Can I have some information/link about this.

ps : I use swift code.

Thank you so much guys

It depends. The type of device (iPhone 5, 6, 6 Plus, whatever...) is not really important if you're using Storyboards with constraints (there are exceptions, of course, but in general there are no big differences between different devices if you use the correct constraints).

The minimum deployment target is important if you're running on older iOS versions. A new method can be available on iOS 10 (and the code will compile fine), but on iOS 8 (for example), it will crash because the method is not available.

I would recommend you always setting the lowest deployment target you want to target and develop for that.

Example? From the Timer class, the constructor init(timeInterval:, repeats:, block:) isn't available on iOS 9 or lower.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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