I read What\'s new in Xcode 6. The article introduces some new feature about Xcode 6, and it says:
Command Line Xcode’s debugger includes an inter
Command Line
Xcode’s debugger includes an inter
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
then you can do one of these:
xcrun swift lldb --repl
As of Xcode 6.1 - typing swift in the terminal launches the REPL as well.
swift