美文网首页
Cocoapods install 报相关 Error 解决方案

Cocoapods install 报相关 Error 解决方案

作者: __枫__ | 来源:发表于2018-08-07 18:40 被阅读156次

pod install 出现LoadError - cannot load such file -- nanaimo

解决方案:

//卸载 cocoapods
gem uninstall cocoapods 
gem uninstall -i /Users/XXX/.rvm/gems/ruby-2.2.4@global cocoapods

//卸载 nanaimo
gem uninstall nanaimo
gem uninstall -i /Users/XXX/.rvm/gems/ruby-2.2.4@global nanaimo 

//安装更新cocoapods
gem install cocoapods 

出现LoadError - cannot load such file -- macho

解决方案

//终端打开
cd /Users/XXX/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox

//打开 file_accessor.rb 文件,修改
autoload :MachO, 'macho' 修改成 require 'macho'

相关文章

网友评论

      本文标题:Cocoapods install 报相关 Error 解决方案

      本文链接:https://www.haomeiwen.com/subject/tdnavftx.html