LoginSignup
5
5

More than 5 years have passed since last update.

コマンドラインからSwiftを触る

Posted at

irbpryのような感覚で触りたい。
でも、xcode-select -switchするのだるいじゃないですか!
特に本職で開発されている方にとって。

フルパスで実行すれば良いです。

/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift

且つ、alias登録すると幸せになるでしょう。

alias play-swift='/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift'

:quitで終了できます。

Screenshot 2014-06-07 17.14.23.png

5
5
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
5
5