Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I read the "what's new in XCode6" in https://developer.apple.com/xcode/. And the article introduce some new feature about XCode6, and it say:"Command Line Xcode’s debugger includes an interactive version of the Swift language, known as the REPL (Read-Eval-Print-Loop). Use Swift syntax to evaluate and interact with your running app or write new code in a script-like environment. The REPL is available from within LLDB in Xcode’s console, or from Terminal." I want to know how to get the REPL?

share|improve this question
1  
Xcode6 is not released and under NDA. You should ask at developer.apple.com/devforums. –  cahn 3 hours ago
    
Actually, this year there is no NDA so you discuss details. You just can't review it –  Kaan Dedeoglu 1 hour ago
add comment

1 Answer

up vote 4 down vote accepted
sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer

xcrun swift
share|improve this answer
    
it works, thanks. –  riven 2 hours ago
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.