簡體   English   中英

嘗試運行迦太基時出錯

[英]Error when trying to run carthage

我嘗試為新的iOS項目設置我的依賴項。 我想為此使用迦太基。

我在項目的根目錄中設置了一個Cartfile

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

然后運行迦太基更新,出現此錯誤:

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

我嘗試環顧四周,但找不到類似此錯誤的內容。

我嘗試卸載和重新安裝迦太基(使用自制),但沒有任何改變。

我在這里找到解決方案:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM