ElCapitan/Xcode7.3 でcarthageを 0.9.3 -> 0.16.2 にアップデートした際のトラブル
Outline
$ brew rm carthage $ brew install carthage
でもこれじゃバージョンが変わらなかった。ので
$ brew link --overwrite --dry-run carthage Would remove: /usr/local/bin/carthage $ brew link --overwrite carthage Linking /usr/local/Cellar/carthage/0.16.2... 5 symlinks created
↑したら、
$ carthage version dyld: Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /usr/local/bin/carthage Reason: Incompatible library version: carthage requires version 1.0.0 or later, but libswiftAppKit.dylib provides version 0.0.0 zsh: trace trap carthage version
問題がでした。
Solution
公式のREADME.mdに書いてありました。
$ sudo rm -rf /Library/Frameworks/CarthageKit.framework
これで動きました。
Concolusion
cathage 0.16.2
$ brew unlink carthage $ brew rm carthage $ brew install carthage $ sudo rm -rf /Library/Frameworks/CarthageKit.framework