Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: Loading sourcekitd.framework/Versions/A/sourcekitd failed #1466

Closed
PraveenSingh107 opened this issue Apr 25, 2017 · 9 comments
Closed
Labels

Comments

@PraveenSingh107
Copy link

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?

@jpsim
Copy link
Collaborator

jpsim commented Apr 25, 2017

Have you installed Xcode? What's the result of xcode-select -p?

@jpsim jpsim added the question label Apr 25, 2017
@PraveenSingh107
Copy link
Author

Yeah, i've installed xcode. swiftlint was working fine but suddenly it started throwing this error.
Output of xcode-select -p : /Library/Developer/CommandLineTools

@jpsim
Copy link
Collaborator

jpsim commented Apr 26, 2017

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.

@PraveenSingh107
Copy link
Author

Thanks. Issue got resolved

@ulkoart
Copy link

ulkoart commented Apr 24, 2020

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.

Thank you so much! advice helped me.

@koushikkarmakar
Copy link

koushikkarmakar commented May 4, 2020

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 a lot !! it helped me as well :)

@americo677
Copy link

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.

Thank you jpsim!, It works for me!. macOS Big sur 11.6.

@sanket492
Copy link

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.

Thank you @jpsim from bottom of my heart, this helped me to resolve my issue

@ObjectiveCesar
Copy link

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.

This is not sufficient, if you have a nightly/snapshot swift toolchain installed. See: #5325 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants