Swift package "error: root manifest not found"

(Eddy Hahn) #1

I am using Xcode 10. Beta 6. I am trying to create a Xcode project using swift package generate-xcodeproj.
I have run sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer to set the beta version of Xcode.

When I try to run any of the swift package commands I always get the "error: root manifest not found" for example running "swift package tools-version". When I try to set the tools "swift package tools-version --set" I will get the same error.

I think something else in the process has a problem not the actual swift package manager. Any idea how to fix it?



(Ankit Aggarwal) #2

Please move this to “Using Swift” section.

(Guillaume Lessard) #3

It would help the diagnosis to know what your package manifest (Package.swift) looks like.

(Eddy Hahn) #4

Sorry my bad! This is my first try.

I needed to run "swift package init --type library" first than "swift package generate-xcodeproj"