今天在一個(gè)新的項(xiàng)目中用cocoapods添加第三方的的時(shí)候溢陪, 提示RuntimeError - [Xcodeproj] Unknown object version.Cocoapods這樣的錯(cuò)誤萍虽。還有其他的提示
### 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
還有很多的提示, 在此不在復(fù)制了形真,有很多的方式解決杉编, 但是我是先執(zhí)行 sudo gem install cocoapods 時(shí)提示 ERROR:While executing gem ... 有這樣字段的錯(cuò)誤, 然后執(zhí)行 sudo gem install -n /usr/local/bin cocoapods 以后 就可以了。希望能給遇到相同錯(cuò)誤的同行提供一些思路王财。
還有卵迂, 我這邊有個(gè)思路不知道對不對, 如果在使用cocoapods時(shí)出現(xiàn)錯(cuò)誤并且找不到解決辦法的時(shí)候绒净, 可以找?cocoapods詳細(xì)安裝 過程的见咒,按照步驟介紹有選擇的執(zhí)行命令行, 可能會解決你的問題