It isn't very clear what you have done or what you are actually doing. The path "path/to/bin/swift build" doesn't make much sense, it must be an example trying to imply you need to supply the path to the actual swift command on your system.
Review https://github.com/apple/swift-package-manager/blob/master/README.md. On my system with Xcode 7.3 installed as well as the 03-01 swift snapshot... [shawnce:~/] [1:539]> xcodebuild -version Xcode 7.3 Build version 7D175 [shawnce:~/] [1:540]> xcrun --find swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift [shawnce:~/] [1:541]> swift --version Apple Swift version 2.2 (swiftlang-703.0.18.1 clang-703.0.29) Target: x86_64-apple-macosx10.9 [shawnce:~/] [1:542]> swift build error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory) [shawnce:~/] [1:543]> export TOOLCHAINS=swift [shawnce:~/] [1:544]> xcrun --find swift /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift [shawnce:~/] [1:545]> swift --version Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75) Target: x86_64-apple-macosx10.9 [shawnce:~/] [1:554]> swift build error: no Package.swift file found << which is expect since I don't have a package in this directory. On Sun, Apr 3, 2016 at 6:51 PM Dave Yost via swift-users < [email protected]> wrote: > This happens with the swift in Xcode 7.3 on 10.11.4, and it happens with > the swift I just built from http://github.com/apple/swift > > $ /path/to/bin/swift build > error: unable to invoke subcommand: /path-to/bin/swift-build (No such file > or directory) > $ > > There is no file called “swift-build” anywhere on my system. > > How do I fix this? > > Thanks > _______________________________________________ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users >
_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
