今天在一個新的項目中用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
還有很多的提示, 在此不在復制了,有很多的方式解決, 但是我是先執(zhí)行 sudo gem install cocoapods 時提示 ERROR:While executing gem ... 有這樣字段的錯誤, 然后執(zhí)行 sudo gem install -n /usr/local/bin cocoapods 以后 就可以了。希望能給遇到相同錯誤的同行提供一些思路。
還有, 我這邊有個思路不知道對不對, 如果在使用cocoapods時出現(xiàn)錯誤并且找不到解決辦法的時候, 可以找?cocoapods詳細安裝 過程的,按照步驟介紹有選擇的執(zhí)行命令行, 可能會解決你的問題