简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM