Reputation: 109
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:
The problem is that, when i try to add it to a project, i get an error that Package.swift is not found.
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.
How should the Package.swift look like to make this work?
Upvotes: 2
Views: 5918
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.
Upvotes: 2