尝试运行carthage时出错

Rom*_*aun 7 terminal ios swift carthage

我试图为新的iOS项目设置我的依赖项.我想使用迦太基.

我在项目的根目录中设置了一个Cartfile

github "Alamofire/Alamofire" >= 1.2
github "SwiftyJSON/SwiftyJSON" >= 2.2
Run Code Online (Sandbox Code Playgroud)

然后运行carthage更新,收到此错误:

dyld: Symbol not found: __TMdVSs9Character
  Referenced from: /usr/local/Cellar/carthage/0.7.3/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks//PrettyColors.framework/PrettyColors
  Expected in: /Library/Frameworks/CarthageKit.framework/Versions/Current/Frameworks/libswiftCore.dylib
 in /usr/local/Cellar/carthage/0.7.3/bin/../Frameworks/CarthageKit.framework/Versions/Current/Frameworks//PrettyColors.framework/PrettyColors
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)

我试着环顾四周,但我找不到任何看起来像这个错误的东西.

我尝试卸载并重新安装carthage(使用自制软件),但没有任何改变.

Rom*_*aun 39

我在这里找到了解决方案:

https://github.com/Carthage/Carthage/issues/330

脚步:

sudo rm -rf /Library/Frameworks/CarthageKit.framework
rm -f /usr/local/bin/carthage
brew uninstall carthage
brew install carthage
Run Code Online (Sandbox Code Playgroud)