简体   繁体   English

未找到 Package.swift 清单(“没有 Package.Z818056DBD7E2012432Z06C 清单 11848C...”

[英]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 添加特定路径,但它仍然无法正常工作。 Pakcage.swift 文件内容

How should the Package.swift look like to make this work? Package.swift 应该如何完成这项工作?

I found the issue with the Package setup.我发现 Package 设置存在问题。 Just have to find the correct paths to both targets.只需要找到两个目标的正确路径。 Here is the working setup.这是工作设置。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 预处理器指令在 Package.swift 中不起作用? - Preprocessor directives not working in Package.swift? 将 Package.swift 文件转换为二进制 XCFramework - Turn Package.swift file into binary XCFramework 在没有 package.swift 的情况下安装第三方 Swift ZEFE90A8E604A7C840E88D03AD6 - Install a third party without package.swift with the Swift package manager Swift Package 管理器 - 将 package 依赖项添加到您的 Package.swift 以进行本机反应 - Swift Package Manager - add the package dependency to your Package.swift for react native 为什么我不能将 SPM TSCUtility 库作为依赖项包含在我的 Package.swift 中? - Why can't I include the SPM TSCUtility library as a dependency in my Package.swift? Package.swift 和 Xcode 11 项目,如何同时使用 Carthage 和 SPM? - Package.swift together with Xcode 11 Project, how to use Carthage and SPM alongside? 如何在单个 Package.swift 中处理多个同名文件? - How do I deal with multiple files with the same name in a single Package.swift? Package.swift 平台从 v13 更改为 v14 时出现 Xcode 错误“v14 不可用” - Xcode error when Package.swift platform changed from v13 to v14 “v14 unavailable” 如何从 Swift Package 管理器清单文件加载文件并运行 swift 代码? - How to load file and run swift code from Swift Package Manager manifest file? Swift Package:找不到模块 - Swift Package: Module not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM