Mehmet Davut
Mehmet Davut

Reputation: 667

How to update compiler to Swift 2?

I installed XCode 7 Beta, when I open playground it says:

Playground execution terminated because the process stopped unexpectedly.

I run swift in terminal and it says:

Apple Swift version 1.2 (swiftlang-602.0.53.1 clang-602.0.53) Target: x86_64-apple-darwin15.0.0

How can i update my swift version to 2?

Upvotes: 0

Views: 362

Answers (1)

Ch0k0l8
Ch0k0l8

Reputation: 837

This happens when you have different copies of Xcode IDE installed

Use xcode-select command line utility to select the version of Xcode that you wanna use

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html

$ xcode-select --switch /path/to/the/Xcode

Upvotes: 5

Related Questions