Swiftをシェルから実行するには [Swift]
Swiftをシェルから実行する(REPLで使う)には、swiftの実行ファイルが以下のパスにあるので
以下のようにシェルから実行します。
/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
以下のようにシェルから実行します。
$ /Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
Welcome to Swift! Type :help for assistance. 1>
コメント 0