2
2

More than 5 years have passed since last update.

[SwiftLint] dyld: Library not loaded: @rpath/libclang.dylib する場合

Last updated at Posted at 2016-01-29

brew install swiftlintして実行しようとしたら

dyld: Library not loaded: @rpath/libclang.dylib
Referenced from: /Library/Frameworks/SwiftLintFramework.framework/SwiftLintFramework
Reason: image not found
zsh: trace trap  swiftlint

と言われた。
多分Xcodeの名前を変えていると、ダメなのかな…?

sudo install_name_tool -add_rpath "/Applications/Xcode720.app/Conte
nts/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib" /Library/Frameworks/Sw
iftLintFramework.framework/SwiftLintFramework                                    

で解決。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2