下载语言包,直接把bin路径添加进PATH:
Download the file from http://swiftlang.org/packages/swift-0.94.1.tar.gz.
Extract by running "tar xfz swift-0.94.1.tar.gz"
Add to PATH by running "export PATH=$PATH:/path/to/swift-0.94.1/bin"
执行示例代码:
cd swift-0.94.1/examples/swift/tutorial swift hello.swift
如何配置Swift语言环境 0.94稳定版本,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/sban/p/3765251.html