Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 784
Silvering Avatar asked Jun 24 '19 08:06

Silvering


2 Answers

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.

like image 81
Jeff Avatar answered Oct 04 '22 09:10

Jeff


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

like image 20
Oded Breiner Avatar answered Oct 04 '22 09:10

Oded Breiner