Cocoapods Pod setup Error

Command

/Users/xxx/.rvm/rubies/ruby-2.2.2/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.5.3
        Ruby : ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
    RubyGems : 2.4.8
        Host : Mac OS X 10.13.5 (17F77)
       Xcode : 9.4 (9F1027a)
         Git : git version 2.15.1 (Apple Git-101)
Ruby lib dir : /Users/xxx/.rvm/rubies/ruby-2.2.2/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ e79f2ba0b040deb3a973afaeb4948e17b34c3327

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '9.0'
use_frameworks!
target 'kido' do
  pod 'R.swift'          #资源文件加载
end

Error

LoadError - cannot load such file -- macho
/Users/xxxx/.rvm/gems/ruby-2.2.2@global/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:432:in `rescue in dynamic_binary?'

解决方案

//先移除本地的cocoapods
sudo rm -fr ~/.cocoapods/repos/master
//然后重新安装
pod setup

你可能感兴趣的:(Cocoapods Pod setup Error)