简体   繁体   中英

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: 封装结构

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. Pakcage.swift 文件内容

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

I found the issue with the Package setup. Just have to find the correct paths to both targets. Here is the working setup. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM