安装cocoaPods错误report': incompatible character encodings: UTF-8 and ASCII-8BIT

安装玩cocoaPods完成后搜索pod search AFNetworking出现

/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/user_interface/error_report.rb:14:in report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:66:inreport_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:396:in handle_exception' from /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:337:inrescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:325:in run' from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:52:inrun'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in ' from /usr/local/bin/pod:22:inload'
from /usr/local/bin/pod:22:in `

'
解决办法:我这的原因是,当时在github上发布了一个开源库,没有搜到后来把search_index.json重新命名为search_indexold.json,没有删除,后来也没有再管了,耗了我很长时间查到原因,把search_indexold.json删除,上述问题解决。。

你可能感兴趣的:(安装cocoaPods错误report': incompatible character encodings: UTF-8 and ASCII-8BIT)