I started facing this fatal error while running the lint command.
fatal error: Loading sourcekitd.framework/Versions/A/sourcekitd failed: file /tmp/swiftlint-20160824-65136-lo3uim/Carthage/Checkouts/SourceKitten/Source/SourceKittenFramework/library_wrapper.swift, line 59
.git/hooks/pre-commit: line 7: 32011 Illegal instruction: 4 ${SWIFT_LINT} lint --strict --quiet --path ${filename}
Any suggestions why suddenly this fatal error is stopping swiftlint?
Have you installed Xcode? What's the result of xcode-select -p?
Yeah, i've installed xcode. swiftlint was working fine but suddenly it started throwing this error.
Output of xcode-select -p : /Library/Developer/CommandLineTools
The command line tools located at /Library/Developer/CommandLineTools do not contain a Swift toolchain.
Where have you installed Xcode? If it's installed under /Applications/Xcode.app, please run:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
If it's installed elsewhere, please replace the /Applications/Xcode.app path in the command above to the location where you've installed Xcode.
Thanks. Issue got resolved
The command line tools located at
/Library/Developer/CommandLineToolsdo not contain a Swift toolchain.Where have you installed Xcode? If it's installed under
/Applications/Xcode.app, please run:sudo xcode-select -s /Applications/Xcode.app/Contents/DeveloperIf it's installed elsewhere, please replace the
/Applications/Xcode.apppath in the command above to the location where you've installed Xcode.
Thank you so much! advice helped me.
The command line tools located at
/Library/Developer/CommandLineToolsdo not contain a Swift toolchain.Where have you installed Xcode? If it's installed under
/Applications/Xcode.app, please run:sudo xcode-select -s /Applications/Xcode.app/Contents/DeveloperIf it's installed elsewhere, please replace the
/Applications/Xcode.apppath in the command above to the location where you've installed Xcode.
thanks a lot !! it helped me as well :)
Most helpful comment
The command line tools located at
/Library/Developer/CommandLineToolsdo not contain a Swift toolchain.Where have you installed Xcode? If it's installed under
/Applications/Xcode.app, please run:If it's installed elsewhere, please replace the
/Applications/Xcode.apppath in the command above to the location where you've installed Xcode.