-
Notifications
You must be signed in to change notification settings - Fork 413
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
Library not loaded: @rpath/libswiftCore.dylib sourcekitten #159
Comments
@maltzsama do you have Xcode (>= 6.1.1) installed as |
I'm getting this same issue, and I have XCode 6.1.1 installed. |
Seems that for some reason, RubyGems is not downloading the symlink For those who need a quick work around in the meantime. # This will tell you the path to your RubyGem install. For example: /Library/Ruby/Gems/2.0.0/
gem env
cd <RUBY_GEM_PATH>/gems/jazzy-0.1.0/lib/jazzy/sourcekitten/
sudo install_name_tool -add_rpath "@executable_path/SourceKittenFramework.framework/Versions/A/Frameworks" sourcekitten |
This works fine 👍 |
worked for me too. |
This patch does not seem to be sufficient for me. Now it can't find I installed jazzy this weekend with @jpsim, using a simple Before the patch I got this error with
And tried to launch jazzy again. The error changed… but now it can't find
|
@AliSoftware As I understand it, Here's the solution to that via symlinks (preferred solution, as it will persist even if a new version of jazzy is installed). Or alternatively, you can add the So it be sudo install_name_tool -add_rpath "<PATH_TO_XCODE>/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib" SourceKittenFramework Hope that helps! :) |
@beltex I'm ashamed not to have seen that one! I was quite sure my Xcode was named Thanks for your insight! 🎷 |
np! :) |
I get this error too, and my Xcode is in the usual place. After the "patch" above I still get: Failed to generate documentation |
@rodriguise your error is unrelated -- SourceKitten is running for you, but it's encountering an error along the way. |
Same error still :( Symlinks are there now, but some are not quite correct. # Should link to '-> Versions/Current/SourceKittenFramework'
$ pwd
/Library/Ruby/Gems/2.0.0/gems/jazzy-0.1.1/lib/jazzy/SourceKitten/SourceKittenFramework.framework
$ ls -l SourceKittenFramework.framework
lrwxr-xr-x 1 root wheel 48 17 Feb 20:19 SourceKittenFramework.framework -> Versions/Current/SourceKittenFramework.framework
# Should link to '-> A'
$ cd Versions
$ ls -l Current
lrwxr-xr-x 1 root wheel 10 17 Feb 20:19 Current -> Versions/A |
@beltex any chance you could submit a PR fixing this? |
I'm still getting the same issue. Xcode 6.1.1, Jazzy 0.1.1:
dyld: Library not loaded: @rpath/libswiftCore.dylib
Referenced from: /usr/local/lib/ruby/gems/2.2.0/gems/jazzy-0.1.1/lib/jazzy/sourcekitten/sourcekitten
Reason: image not found
/usr/local/lib/ruby/gems/2.2.0/gems/jazzy-0.1.1/lib/jazzy/sourcekitten.rb:51:in `run_sourcekitten': Running`/usr/local/lib/ruby/gems/2.2.0/gems/jazzy-0.1.1/lib/jazzy/sourcekitten/sourcekitten doc`failed: (RuntimeError)
from /usr/local/lib/ruby/gems/2.2.0/gems/jazzy-0.1.1/lib/jazzy/doc_builder.rb:55:in`build'
from /usr/local/lib/ruby/gems/2.2.0/gems/jazzy-0.1.1/bin/jazzy:15:in `'
from /usr/local/bin/jazzy:23:in`load'
from /usr/local/bin/jazzy:23:in `'
/Users/ajballan/Documents/Work Stuff/Development/ReadyApp RT/docs/scripts
Post regarding the |
@jballands where do you have Xcode installed? |
@segiddins |
I can also confirm that this problem is still occuring. |
I was having this problem as well, and was able to resolve it by manually installing SourceKitten 0.3.1 directly from the .pkg file downloadable here. Hope this helps! |
No need to use Here is how to fix it:
|
@segiddins Done! Let me know if it works for you. And sorry about the late response, was held up with a few things. |
No worries :) I really appreciate the help. |
Hi folks! The latest version of jazzy ( If you can give it a shot and report back the result it would be most appreciated! :) |
I had a coworker run the latest version of jazzy and he said that he had no issues! Thanks for everything. |
@trishayy Awesome, thanks! |
I did uninstall of jazzy, updated gem, but nothing working
The text was updated successfully, but these errors were encountered: