CocoaPods执行pod install 提示 RuntimeError - [Xcodeproj] Unknown object version.Cocoapods错误

今天在一个新的项目中用cocoapods添加第三方的的时候, 提示RuntimeError - [Xcodeproj] Unknown object version.Cocoapods这样的错误。还有其他的提示

### Command

```

/Users/qqqq/.rvm/rubies/ruby-2.0.0-p643/bin/pod install

```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

```

   CocoaPods : 1.2.0

        Ruby : ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.5.0]

    RubyGems : 2.6.6

        Host : Mac OS X 10.13.4 (17E199)

       Xcode : 9.3 (9E145)

         Git : git version 2.15.1 (Apple Git-101)

Ruby lib dir : /Users/qqqq/.rvm/rubies/ruby-2.0.0-p643/lib

Repositories : master - https://github.com/CocoaPods/Specs.git @ d0a0ba10caedbe7cc887411b987a5d458c8e9209

```

### Plugins

```

cocoapods-deintegrate : 1.0.1

cocoapods-plugins    : 1.0.0

cocoapods-search      : 1.0.0

cocoapods-stats      : 1.0.0

cocoapods-trunk      : 1.1.2

cocoapods-try        : 1.1.0

```

### Podfile

```ruby

platform :ios, '8.0'

use_frameworks!

target 'SilverMeter' do

end

```

还有

Be sure to first read the contributing guide for details on how to properly submit a ticket:

https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

 - RuntimeError - [Xcodeproj] Unknown object version.

   https://github.com/CocoaPods/CocoaPods/issues/7712 [closed] [9 comments]

   a week ago

还有很多的提示, 在此不在复制了,有很多的方式解决, 但是我是先执行 sudo gem install cocoapods 时提示 ERROR:While executing gem ... 有这样字段的错误, 然后执行 sudo gem install -n /usr/local/bin cocoapods 以后 就可以了。希望能给遇到相同错误的同行提供一些思路。

还有, 我这边有个思路不知道对不对, 如果在使用cocoapods时出现错误并且找不到解决办法的时候, 可以找 cocoapods详细安装 过程的,按照步骤介绍有选择的执行命令行, 可能会解决你的问题

你可能感兴趣的:(CocoaPods执行pod install 提示 RuntimeError - [Xcodeproj] Unknown object version.Cocoapods错误)