How to install Swift package via package manager?

后端 未结 4 739
清酒与你
清酒与你 2021-02-12 22:39

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 comma

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-12 23:05

    I think it is a problem with the latest snapshot:

    • Ubuntu 14.04 Swift 2.2 Snapshot of January 11 contains swift-build in usr/bin
    • Ubuntu 14.04 Swift 2.2 Snapshot of January 25 doesn't contain swift-build in usr/bin

    Besides, the January 25 release also seems to miss other files (libFoundation.so and libXCTest.so in usr/lib/swift/linux for instances).

    Either there has been a structure change....or, simply, the latest snapshot had a problem ;) While they fix the snapshot, simply take the older (January 11th) snapshot, and you should be fine.

提交回复
热议问题