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


(Joy Mailer) #1

Followed the instructions on this page to set up a Package:
https://swift.org/getting-started/#using-the-build-system

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


(Daniel Dunbar) #2

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:
  https://swift.org/download/#apple-platforms

- 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:
https://swift.org/getting-started/#using-the-build-system

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


(Kostiantyn Koval) #3

Hi,

Have you dowloaded and installed Swift 2.2 toolchain? https://swift.org/download/

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:
https://swift.org/getting-started/#using-the-build-system

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