LoginSignup
72
73

More than 5 years have passed since last update.

【Swift3系を追記】Swiftで開発している人必見!ターミナルでSwiftのバージョンを確認する方法

Last updated at Posted at 2014-11-10

Swiftを触り始めてる方が段々、増えてきた様に感じますが、Swiftのバージョンを
把握していない方は多いのではないかと思います。。。
(僕もXcodeのバージョンは追うので精一杯でした。。。)

コマンド(ターミナルで実行)

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -v

結果


Swift version 1.1 (swift-600.0.54.20)
Target: x86_64-apple-darwin13.4.0

最新バージョンになっていたのでとりあえず一安心。

その後にコマンドラインに移動したので、
最初に「:」
次に「q」
でターミナルに戻れました。

追記

2017/2/18時点での結果は以下の通り
(コマンド内容は上記のままで問題ありませんでした。)

スクリーンショット 2017-02-18 11.16.25.png


Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)

72
73
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
72
73