Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11 - Swift Package Manager can't find Manifest

I'm working on updating some pods I use to also be compatible with SPM and I've updated this one https://github.com/trusk89/SwiftForms.git but when I try to add it to the project I'm using it in, I keep getting Showing All Messages : https://github.com/trusk89/SwiftForms.git has no Package.swift manifest for version 1.8.3

Package.swift is in the root folder so I have no clue what the actual problem is. Anyone have any idea? The package compiles fine and also the sample app works.

like image 463
trusk Avatar asked Sep 25 '19 08:09

trusk


People also ask

How do I use swift package manager with Xcode?

Open your Xcode project, navigate the File tab within the macOS bar, and click on “Add Packages”. In the Add New Package window, you can select from recently used or Apple Swift Packages. Alternatively, you can search for a package via the name or the URL to the Github page.

What is manifest file in swift?

swift file, or package manifest, describes the configuration for the Swift package. You can double-click it in Finder to open the package in Xcode. The package manifest uses Swift and the PackageDescription framework to define the package's name, products, targets, dependencies on other packages, and so on.

How do I update swift package dependencies?

You can also update every single Swift Package in your project at once. To do this, open the Files menu, navigate to Packages and then click Update to Latest Package Versions. Afterwards, make sure to test your project to see if everything still works, especially in projects with a lot of package dependencies.


2 Answers

Make new Release on Github. SPM read Release

like image 69
Changhoon Avatar answered Oct 05 '22 02:10

Changhoon


For me the solution below worked:

In Xcode: File -> Swift Packages -> Reset Package Caches

this is probably for the case where the conflicting package has previously been added with the other version

like image 23
Bartosz Olszanowski Avatar answered Oct 05 '22 02:10

Bartosz Olszanowski