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

Library not loaded error when running #144

Closed
Isuru-Nanayakkara opened this issue Jan 7, 2015 · 7 comments
Closed

Library not loaded error when running #144

Isuru-Nanayakkara opened this issue Jan 7, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@Isuru-Nanayakkara
Copy link

After much trouble I finally installed Jazzy successfully. Then from the Terminal, I navigate inside an Swift Xcode project which I have documented according to the new Swift documentation syntax and ran the command jazzy. But it outputs the following error.

dyld: Library not loaded: @rpath/libclang.dylib
Referenced from: /Library/Ruby/Gems/2.0.0/gems/jazzy-0.0.20/bin/sourcekitten
Reason: image not found
Please pass in xcodebuild arguments using -x
If build arguments are correct, please file an issue on https://github.com/realm/jazzy/issues

How do I resolve this?

@beltex
Copy link
Contributor

beltex commented Jan 7, 2015

Where do you have Xcode installed? It's expected to be under /Applications/Xcode.app/...

You can check by running xcode-select -p

@Isuru-Nanayakkara
Copy link
Author

Yes. It returns this.
/Applications/Xcode-Beta.app/Contents/Developer

Its the correct path. I have the Xcode 6.2 beta installed.

@beltex
Copy link
Contributor

beltex commented Jan 8, 2015

Not quite. Your's is Xcode-Beta.app, while expected is Xcode.app. I ran into this before myself. Simple work around is to create a symlink to your lib dir.

mkdir -p /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr
ln -s /Applications/Xcode-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib

@Isuru-Nanayakkara
Copy link
Author

I see. One question. When I eventualy install a stable Xcode version, do I have to remove the symlink or something?

@beltex
Copy link
Contributor

beltex commented Jan 10, 2015

No. When you install a GM version either manually (by placing it in the /Applications/ dir) or via the App Store it will overwrite that whole directory path and thus the symlink.

Is it working for you now?

@Isuru-Nanayakkara
Copy link
Author

Yep! That solved it. Works fine now. 👍 Thank you so much.

@beltex
Copy link
Contributor

beltex commented Jan 10, 2015

Nice, np! :)

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

3 participants