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'