[swift-users] swift build

Dave Yost Dave at Yost.com
Mon Apr 4 01:21:14 CDT 2016


On my 10.11.4 with /Applications/Xcode.app  version 7.3,
here is what I get when I run the commands you ran:

$ xcodebuild -version
warning: failed to load toolchain 'swift': Could not find toolchain: swiftXcode 7.3
Build version 7D175
$ 
$ xcrun --find swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
$ 
$ swift --version
Apple Swift version 2.2 (swiftlang-703.0.18.1 clang-703.0.29)
Target: x86_64-apple-macosx10.9
$ 
$ swift build
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
$ 
$ export TOOLCHAINS=swift
$ 
$ xcrun --find swift
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift
$ 
$ swift --version
Apple Swift version 2.2 (swiftlang-703.0.18.1 clang-703.0.29)
Target: x86_64-apple-macosx10.9
$ 
$ swift build
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
$ 

> On 2016-04-03, at 7:27 PM, Shawn Erickson <shawnce at gmail.com> wrote:
> 
> [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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160403/f1652975/attachment.html>


More information about the swift-users mailing list