I upgraded my project from Swift 2.2 to 2.3 (Xcode 7 to 8), and committed everything on one Mac. When I pulled from git on my other Mac, and built, I get:
Warning: target specifies SWIFT_VERSION = '2.3', but it is overridden by TOOLCHAINS = 'com.apple.dt.toolchain.XcodeDefault'
I can't find anything called "TOOLCHAINS" in any file. What's this warning mean?
If you don't have "Toolchain" option under Xcode menu, you need to download and install a snapshot or release first.
I see you have solved the problem by upgrading to Swift 3.0.
I encountered the same problem, and did some research in this. When building within Xcode, make sure you have the setting " Project > Build Settings > Use Legacy Swift Language Version" set to "Yes"
For those who are using xcrun or xcodebuild tools, I managed to solve it by using an extra option 'toolchain'
xcrun --toolchain "com.apple.dt.toolchain.Swift_2_3"
xcodebuild -toolchain "com.apple.dt.toolchain.Swift_2_3"
The identifier "com.apple.dt.toolchain.Swift_2_3" can be found at:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/ToolchainInfo.plist
Hope this helps for those who are developing in Swift 2.3.
Source: https://marc.ttias.be/swift-users/2016-08/msg00188.php
I had the same warning and i could solve the problem by cleaning the build folder (alt+shift+cmd+K)
Toolchains is not explicitly called out as it was in the prior builds. However, it is still there in the Locations -> Command Line Tools portion of the Xcode Preferences menu
Choosing Xcode 8 resolved the issue for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With