<div dir="ltr"><span><div style="color:rgb(0,0,0)"><div><span><div>It isn&#39;t very clear what you have done or what you are actually doing. The path &quot;path/to/bin/swift build&quot; doesn&#39;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.</div><div><br></div><div>Review <a href="https://github.com/apple/swift-package-manager/blob/master/README.md">https://github.com/apple/swift-package-manager/blob/master/README.md</a>.</div><div><br></div><div>On my system with Xcode 7.3 installed as well as the 03-01 swift snapshot...</div><div><br></div><div>[shawnce:~/]</div><div>[1:539]&gt; xcodebuild -version</div><div>Xcode 7.3</div><div>Build version 7D175</div><div><br></div></span></div><div>[shawnce:~/]</div><div>[1:540]&gt; xcrun --find swift</div><div>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift</div></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">[shawnce:~/]</div><div style="color:rgb(0,0,0)">[1:541]&gt; swift --version</div><div style="color:rgb(0,0,0)">Apple Swift version 2.2 (swiftlang-703.0.18.1 clang-703.0.29)</div><div style="color:rgb(0,0,0)">Target: x86_64-apple-macosx10.9</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)"><span><div>[shawnce:~/]</div><div>[1:542]&gt; swift build</div><div>error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)</div></span></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">[shawnce:~/]</div><div style="color:rgb(0,0,0)">[1:543]&gt; export TOOLCHAINS=swift</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">[shawnce:~/]</div><div style="color:rgb(0,0,0)">[1:544]&gt; xcrun --find swift</div><div style="color:rgb(0,0,0)">/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a.xctoolchain/usr/bin/swift</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">[shawnce:~/]</div><div style="color:rgb(0,0,0)">[1:545]&gt; swift --version</div><div style="color:rgb(0,0,0)">Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75)</div><div style="color:rgb(0,0,0)">Target: x86_64-apple-macosx10.9</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)"><span><div>[shawnce:~/]</div><div>[1:554]&gt; swift build</div><div>error: no Package.swift file found &lt;&lt; which is expect since I don&#39;t have a package in this directory.</div></span><br></div></span><br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Apr 3, 2016 at 6:51 PM Dave Yost via swift-users &lt;<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>This happens with the swift in Xcode 7.3 on 10.11.4, and it happens with the swift I just built from <a href="http://github.com/apple/swift" target="_blank">http://github.com/apple/swift</a></div><div><br></div><div><div style="margin:0px;font-size:8.5px;line-height:normal;font-family:Menlo;color:rgb(255,207,130);background-color:rgb(4,22,16)"><span style="font-size:8.5px">$ </span><span style="color:rgb(179,254,255);font-size:8.5px">/path/to/bin/swift build</span></div><div style="margin:0px;font-size:8.5px;line-height:normal;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(4,22,16)"><span>error: unable to invoke subcommand: /path-to/bin/swift-build (No such file or directory)</span></div><div style="margin:0px;font-size:8.5px;line-height:normal;font-family:Menlo;color:rgb(255,207,130);background-color:rgb(4,22,16)"><span>$</span></div></div><div><br></div><div>There is no file called “swift-build” anywhere on my system.</div><div><br></div><div>How do I fix this?</div><div><br></div><div>Thanks</div></div>_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div>