Swift package "error: root manifest not found"

Hi,
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?

Thanks,

Eddy

Please move this to “Using Swift” section.

1 Like

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

Sorry my bad! This is my first try.

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

Thanks,

Eddy

1 Like