Use Swift 2.2 in Xcode 8?

前端 未结 5 1872
南方客
南方客 2020-12-08 01:23

Is it possible to use Swift 2.2 in Xcode 8?

From Xcode 8 release notes:

\"Xcode 8 supports switching toolchains, such as those from swift.or

5条回答
  •  死守一世寂寞
    2020-12-08 02:08

    Using Swift 2.3 in Xcode 8 by That Thing in Swift provides a good introduction to using Swift 2.3 in Xcode 8.

    The following is quoted from the article:

    There’s a single build setting that will let you continue building your Swift projects with a Swift version that’s mostly similar in syntax to your existing projects from Xcode 7: Use Legacy Swift Language Version

    Just drop into your project’s build settings and search for legacy swift to find the correct build setting, then switch the setting to YES to opt-in to Swift 2.3 rather than Swift 3 in Xcode 8.

提交回复
热议问题