1

I'm trying to install Swift 2.2 and the swift package manager on ubuntu 15.10.

When I take a look at the Swift Download Page there are 3 downloads available:

  • Swift 2.2 does not include the package manager
  • Trunk Development (master) includes the package manager, BUT is swift 3.0
  • Swift 2.2.x Release Branch does not include the package manager

What do I have to do to get Swift 2.2 with a working package manager?

Use an old trunk build before they began to develop Swift 3.0?

Grab the Swift 2.2 release package, build swift-lbuild to build swift-build-tool in order to build swift-package-manager?

4

1 回答 1

0

您可以使用 Swift 3.0 的包管理器来构建 Swift 2.2 代码:

export SWIFTC=path/to/swift-2.2/bin/swiftc
export PATH=path/to/swift-3.0/bin:$PATH

swift build
于 2016-04-18T19:20:40.897 回答