iOS: Using Swift 4 when targeting iOS 9

后端 未结 1 1486
无人及你
无人及你 2021-01-31 18:20

Swift 4 is adding some really cool features, like strongly typed keypaths and JSON encoding/decoding using Codable.

I would like to use these new features while still ta

相关标签:
1条回答
  • 2021-01-31 18:28

    Yes, just like with Swift 1, Swift 2 and Swift 3, you can use Swift 4 with any version of iOS 7 and above.

    See this similar question for Swift 3: Xcode 8 / Swift 3 and installing apps on iPhone 4 running iOS 7
    See this similar question for Swift 2: Swift 2.0 minimum system version requirement (deployment target)


    Note: as iOS 11 is dropping support for 32-bit, you will only be able to use iOS 11 from an arm64 slice (that is, from iPhone 5S and up). Source:

    iOS 11 no longer supports armv7 or armv7s (32-bit). If an iOS target has an iOS Deployment Target of 11, then it will not build for 32-bit. iOS targets with an iOS Deployment Target earlier than 11 will still build for 32-bit by default. (32163517)

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