I just created a new Swift project within Xcode. I am wondering which version of Swift it\'s using.
How can I see, in Xcode or the terminal, what version of Swift I
In case anyone is looking for quick one-to-one mapping of Swift version based on Xcode Version:
Xcode 11.6 : Swift version 5.2.4
Xcode 11.5 : Swift version 5.2.4
Xcode 11.4 : Swift version 5.2
Xcode 11.3 : Swift version 5.1.3
Xcode 11.2.1 : Swift version 5.1.2
Xcode 11.1 : Swift version 5.1
Obtained with running following command as mentioned on different Xcode versions:
/Applications/Xcode11.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift --version