Can't import packages using Swift 4 Package Manager

后端 未结 2 912
野趣味
野趣味 2021-02-01 03:17

Trying to test Swift 4 using Xcode-beta (v9) on my machine and having issues with importing packages into a test project:

  • Initiated project using swift packa
2条回答
  •  时光取名叫无心
    2021-02-01 03:42

    Turns out I had to also include the dependencies into the .target of the Package.swift:

    .target(named: "sampleproject", dependencies: ["Kitura", "Alamofire"])
    

    and build the project again.

提交回复
热议问题