Silvering
Silvering

Reputation: 787

Swift package manager - Has no manifest error

I created a Swift Package Manager library, and deployed it on my GitLab with a tag number 0.1.0. I'm now trying to add this package to my new vapor project by adding:

.package(url: "http://mygit.git/", from: "0.1.0").

When I try to make a "vapor update" I get a backgroundExecute error saying that my SPM has no manifest for version 0.1.0…

Any ideas? Thanks in advance!

Upvotes: 13

Views: 8008

Answers (2)

Jeff
Jeff

Reputation: 2711

For me I was trying to add the package by right-clicking on a project and instead had to go to File->Add Packages.... No idea why this is different but there you go.

Upvotes: 1

Oded Breiner
Oded Breiner

Reputation: 29739

The Package.swift file has to be in the root directory.

Upvotes: 14

Related Questions