iOS Compatibility on different iOS Operation Systems

后端 未结 4 412
-上瘾入骨i
-上瘾入骨i 2021-01-21 09:35

I wanted to ask how compatibility on different iOS operation systems works in iOS. For example If I develop an app on Xcode 9.2 and Swift 4 for i

相关标签:
4条回答
  • 2021-01-21 09:52

    Very simple solution:

    Set deployment target as 9.0 in your build target general settings. iOS will automatically handle support from 9.0 onwards for a build (your app).

    Your app/build will be allowed to use/import frameworks and other libraries, compatible to minimum deployment target, only.

    enter image description here

    More detail about App Deployment Target from Apple.

    enter image description here

    0 讨论(0)
  • 2021-01-21 10:02

    Please set your deployment target to 9.0

    0 讨论(0)
  • 2021-01-21 10:13

    Yes, there is backward compatibility, but for older iOSes you have to check version when using newer API. Luckily we've got availability attributes (@available)

    If you want to know HOW it works, basically for Swift your application has its own swift standard library embedded into binary of your application. In case of Objective C – newer iOSes keep sdk's of older versions to maintain backward compatibility.

    0 讨论(0)
  • 2021-01-21 10:16

    Yes, it will work on iOS9 With Xcode 9.2 and swift4 you can develop an application for ios8.0 and above.

    In your project setting, you have to select your development target

    0 讨论(0)
提交回复
热议问题