Archangel
Archangel

Reputation: 109

Package.swift manifest not found ("has no Package.swift manifest for ...")

Using the default flow to create new Swift Package, I created one and put it in a bitbucket repo. The files inside have the following structure: Package structure

The problem is that, when i try to add it to a project, i get an error that Package.swift is not found. enter image description here

It seems, that the Package.swift file is not found, if it is not on the root level level of the repo. But if i move the Package.swift file on the same level as "TestSwiftPackage" root folder, the package dependencies all get broken. I tried to add specific paths for target and testTarget, but it still wont work. Pakcage.swift file content

How should the Package.swift look like to make this work?

Upvotes: 2

Views: 5918

Answers (1)

Archangel
Archangel

Reputation: 109

I found the issue with the Package setup. Just have to find the correct paths to both targets. Here is the working setup. enter image description here

Upvotes: 2

Related Questions