终端上的“swift build”抛出“error: root manifest not found”

Scy*_*ano 16 terminal build swift

我想在终端上运行我的 swift 编程,所以我cd在我的项目的根文件夹中运行$ swift build,但发生了错误。 $ error: root manifest not found 有什么帮助吗?

Cyb*_*ndy 10

万一其他人偶然发现同样的问题,我的解决方案是 cd 到我的脚本的 Sources 文件夹,而不是根文件夹。