"swift build" throws <unknown>:0: error: no such file or directory: 'build'

Followed the instructions on this page to set up a Package:

When I run "swift build", I get the error:
<unknown>:0: error: no such file or directory: 'build'

I'm able to build stand alone files with "swiftc myprogram.swift"

JJ

Sounds like you don't have the Swift package's usr/bin in your path, and are using an old `swift` without this support. See full instructions at:
  Swift.org - Download Swift

- Daniel

···

On Dec 5, 2015, at 2:06 PM, Joy Mailer via swift-users <swift-users@swift.org> wrote:

Followed the instructions on this page to set up a Package:
Swift.org - Getting Started

When I run "swift build", I get the error:
<unknown>:0: error: no such file or directory: 'build'

I'm able to build stand alone files with "swiftc myprogram.swift"

JJ
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Hi,

Have you dowloaded and installed Swift 2.2 toolchain? Swift.org - Download Swift

When you run `swift -v` command you should see
Apple Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift 778f82939c)

Best Regards,
Kostiantyn

···

On 05 Dec 2015, at 23:06, Joy Mailer via swift-users <swift-users@swift.org> wrote:

Followed the instructions on this page to set up a Package:
Swift.org - Getting Started

When I run "swift build", I get the error:
<unknown>:0: error: no such file or directory: 'build'

I'm able to build stand alone files with "swiftc myprogram.swift"

JJ
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users