[英]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.使用默认流创建新的 Swift Package,我创建了一个并将其放入 bitbucket 存储库中。 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.问题是,当我尝试将其添加到项目中时,我收到一个错误,即找不到 Package.swift。
It seems, that the Package.swift file is not found, if it is not on the root level level of the repo.看来,如果 Package.swift 文件不在回购的根级别上,则找不到该文件。 But if i move the Package.swift file on the same level as "TestSwiftPackage" root folder, the package dependencies all get broken.
但是,如果我将 Package.swift 文件移动到与“TestSwiftPackage”根文件夹相同的级别,则 package 依赖项都会被破坏。 I tried to add specific paths for target and testTarget, but it still wont work.
我尝试为 target 和 testTarget 添加特定路径,但它仍然无法正常工作。
How should the Package.swift look like to make this work? Package.swift 应该如何完成这项工作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.