Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to run carthage

I tried to setup my dependencies for a new iOS project. I wanted to use carthage for that.

I setup a Cartfile in the root directory of my project

github "Alamofire/Alamofire" >= 1.2
github "SwiftyJSON/SwiftyJSON" >= 2.2

and then ran carthage update, getting this error:

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

I tried looking around but I couldn't find anything looking like this error.

I tried uninstalling and reinstalling carthage (with homebrew) but nothing changed.

like image 334
Romain Braun Avatar asked May 13 '15 19:05

Romain Braun


1 Answers

I found the solution here :

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

Steps:

sudo rm -rf /Library/Frameworks/CarthageKit.framework
rm -f /usr/local/bin/carthage
brew uninstall carthage
brew install carthage
like image 140
Romain Braun Avatar answered Oct 16 '22 14:10

Romain Braun