Wongzigii Wongzigii - 5 months ago 12
Swift Question

How to install Swift package via package manager?

I am currently following the document from swift.org to play around with the new Swift Package Manager.

I cloned the demo project from Github and run the following command from terminal.

git clone https://github.com/apple/example-package-dealer.git
cd example-package-dealer
swift build

While I run
swift build
, error rise.

<unknown>:0: error: no such file or directory: 'build'

Any idea?


I stuck for an hour. Sadly, it's just an epic fail that downloading the wrong swift package. If you want to use swift build, MAKE SURE you download the development version.