Xcode 9.2 does not show Swift 4.1

Apple compatibility documentation mentions that:

Swift 4.1, the default version of Swift, included in Xcode 9.2.

However, using Xcode version 9.2 (9C40b), the choice of Swift version for the language I have is 3.2 and 4.0:
Swift language version dropdown

Is this a bug in the documentation or a problem in Xcode? Can I use Swift 4.1 with Xcode 9.2? Will I be able to introduce its use in the AppStore?

+2
source share
1 answer

Apple documentation is incorrect, Swift documentation is correct .

Well, to be sure which version is supported, we will check it:

  • xcode 9.2 (9C40b). Xcode swift .

    sudo xcode-select --switch /Applications/Xcode.app
    
  • .

    swift --version
    

:

Apple Swift 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)

, Apple. Swift 4.1 Xcode 9.3

+1

Source: https://habr.com/ru/post/1694852/


All Articles