How to fix DVTToolchain: Failed to load toolchain using Xcode command line tools?
<p>Anytime I run any command with <code>xcrun</code> or <code>xcodebuild</code> in the terminal it always outputs:</p>

<blockquote>
  <p>VTToolchain: Failed to load toolchain: : Error Domain=DVTToolchainErrorDomain Code=4 "alleged toolchain directory doesn't contain ToolchainInfo.plist or Info.plist" UserInfo={NSFilePath=/Library/Developer/Toolchains/swift-latest.xctoolchain, NSLocalizedDescription=alleged toolchain directory doesn't contain ToolchainInfo.plist or Info.plist}</p>
</blockquote>

<p>I have opened the /Toolchains/switft-latest.xctoolchain and it contains Toolchain.Info.plist, so I am confused on how to fix this error. I have tried reinstalling Xcode and reinstalling Xcode command tools </p>

<p>These are my SDK paths:</p>

<pre><code>xcode-select -p
/Applications/Xcode.app/Contents/Developer

xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk 
</code></pre>