CocoaPods出錯

1git

Error:github

pod search Masonry
/usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.4.0.beta.2/lib/cocoapods/user_interface/error_report.rb:135:in `error_from_podfile': invalid byte sequence in UTF-8 (ArgumentError)
    from /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.4.0.beta.2/lib/cocoapods/user_interface/error_report.rb:41:in `report'
    from /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.4.0.beta.2/lib/cocoapods/command.rb:66:in `report_error'
    from /usr/local/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:396:in `handle_exception'
    from /usr/local/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:337:in `rescue in run'
    from /usr/local/lib/ruby/gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:325:in `run'
    from /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.4.0.beta.2/lib/cocoapods/command.rb:52:in `run'
    from /usr/local/lib/ruby/gems/2.3.0/gems/cocoapods-1.4.0.beta.2/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:22:in `load'

Solution:json

https://github.com/CocoaPods/CocoaPods/issues/5338ruby

我按照裏面的描述,刪除了~/Library/Caches/CocoaPods/search_index.json文件,pod search奇蹟般的能夠了。ide

其中也大概提到出現這個問題的緣由,多是CocoaPods在建立索引時,咱們ctrl+c取消了這個操做,這致使索引生成的某些字符有問題,因此咱們刪除索引文件,從新生成便可。ui

2spa

cocoaPods導入第三方庫,但頭文件卻顯示沒有發現 嘗試pod install後,Product -> Clear Build Folder (按住option鍵) 清理一下,然後從新Build一次code

 

blog

CDN: Repo trunk does not exist!索引

解決方案:
https://github.com/CocoaPods/CocoaPods/issues/9338

rm -rf ~/.cocoapods/repos
相關文章
相關標籤/搜索