[swift-users] swift binary in /usr/bin
simonmpilkington at icloud.com
Sat Feb 27 13:21:07 CST 2016
> On 25 Feb 2016, at 9:34 AM, Daniel Dunbar via swift-users <swift-users at swift.org> wrote:
> That is correct.
> Ryan, did you install the 2.2 stable snapshot? It is expected that that snapshot doesn't include the Swift package manager (swift-build). If you want it, you should install the development snapshots.
I encountered this as well as I was definitely using the most recent development snapshot - swift-DEVELOPMENT-SNAPSHOT-2016-02-25-a-osx.
The installer said it was successful but I don’t see anything at /Library/Developer/Toolchains.
> - Daniel
>> On Feb 25, 2016, at 9:31 AM, Joe Groff via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> wrote:
>>> On Feb 25, 2016, at 7:54 AM, Ryan Baxter via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> wrote:
>>> I recently installed a Swift Development snapshot of the package manager on my system and added /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swift to my path. However when I do 'which swift' in my terminal it points to a binary in /usr/bin. When I run 'swift build --help' I get '<unknown>:0: error: no such file or directory: 'build'' so clearly it is not the right swift binary. I am not sure where the binary came from in /usr/bin but I cant delete it because OSX is telling me that it is needed by the operating system. Has anyone encountered this before?
>> OS X puts forwarding stubs for various developer tools into /usr/bin that launch the corresponding tools from the active Xcode or Command Line Tools installation. IIRC you're supposed to use xcode-select, or change the toolchain within Xcode itself, instead of putting the toolchain directly in your path. You can then use `xcrun swift` to run swift with the correct environment set up.
>> swift-users mailing list
>> swift-users at swift.org <mailto:swift-users at swift.org>
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users