/Users/zhangmin/.rvm/gems/ruby-2.2.4/bin/pod install
What did you do?
What did you expect to happen?
What happened instead?
CocoaPods : 1.4.0.beta.1
Ruby : ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin16]
RubyGems : 2.6.13
Host : Mac OS X 10.13.4 (17E202)
Xcode : 9.3 (9E145)
Git : git version 2.14.1
Ruby lib dir : /Users/zhangmin/.rvm/rubies/ruby-2.2.4/lib
Repositories : 6-mobile-ios-sdk-specs - git://198.218.6.243/mobile/ios/sdk/Specs.git @ 863e58c5e2a1251becbff1981db2a1a3bcee97e8
master - https://github.com/CocoaPods/Specs.git @ 7e956a240d4d10cfd5e007231f6d33760e09f41a
PrivatePods - https://github.com/ModulizationDemo/PrivatePods.git @ 15670ad09d48a8659723fee7ab238cd965416326
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.0
cocoapods-try : 1.1.0
platform:ios,'8.0'
target 'xmpptest' do
pod 'RealReachability', '~> 1.1.8'
pod 'AFNetworking', '~> 3.1.0'
pod 'PureLayout', '~> 3.0.2'
pod 'SDWebImage', '~> 4.0.0'
end
RuntimeError - [Xcodeproj] Unknown object version.
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:217:in `initialize_from_file'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:102:in `open'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer/analyzer.rb:907:in `block (2 levels) in inspect_targets_to_integrate'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer/analyzer.rb:906:in `each'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer/analyzer.rb:906:in `block in inspect_targets_to_integrate'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer/analyzer.rb:901:in `inspect_targets_to_integrate'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer/analyzer.rb:75:in `analyze'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer.rb:243:in `analyze'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/user_interface.rb:64:in `section'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/installer.rb:116:in `install!'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command/install.rb:41:in `run'
/Users/zhangmin/.rvm/gems/ruby-2.2.4@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command.rb:52:in `run'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.4.0.beta.1/bin/pod:55:in `<top (required)>'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/bin/pod:23:in `load'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/bin/pod:23:in `<main>'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `eval'
/Users/zhangmin/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:15:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
HELP!!! just build a new project-vim Podfile-pod install , then the error.....
I have tried:gem install cocoapods --pre,but did not resovle the problem.
gem update xcodeproj
, must use version 1.5.7.
Also update to use cocoapods 1.5.0.
cocoapods only can update to 1.4.0 beta.1....
OMG.....I just fixed the problem.Too many posting on the internet suggest the operation:gem install cocoapods --pre
But it doesn't work for me!
If you encounter the same probem likes me,try this
My xcode version is 9.3,so the project format settint would be :Xcode 9.3 - compatible
just select one under 9.3.
then pod install
fixed.....it works for me(confused 2 days),hope helps you guys!!!!!
@dnkoutso thanks for your help!!!
<3 <3
OMG,Amazing! But,I want know why
@oneGain don't understand clearly,supposed to be the Compatibility
gem install cocoapods --pre
Thanks, it works! ~By the way, Are you Chinese?游走的Fish? HaHa
Thanks, it works for me!
There is another way, update to use pod 1.5.2
sudo gem install cocoapods
@soober Yeah,I'm a Chinese!!!
@hamartia0 take it easy
@YouZoudeFish thanks. laotie
OMG!It works! Thanks .laotie six six six
@YouZoudeFish OMG! It works for me. Bro,Old iron,liuliuliu.
@YouZoudeFish omg! guys, thank you very much, you are very six six six!
"sudo gem install cocoapods " works for me.
Hit this on Terminal
sudo gem install cocoapods -n /usr/local/bin
Amazing~ thank you so much. i am chongqing man
@luckycherry Beijing coder says HELLO~
I find that if gem sources use http://rubygems-china.oss.aliyuncs.com in cocoa pods only can update to v1.3.0.
If you gem sources use this, it must change to https://gems.ruby-china.org for latest version.
Then, just hit this on Terminal
sudu gem install -n /usr/local/bin cocoa pods --pre
Finally, It works!
Thx!
@YouZoudeFish thanks bro , it works for me . Six Six Six ~~~
@jcxc ........
brew upgrade cocoapods
work for me!
@YouZoudeFish How to push this changes to remote?
OMG.....I just fixed the problem.Too many posting on the internet suggest the operation:gem install cocoapods --pre
But it doesn't work for me!
If you encounter the same probem likes me,try this
My xcode version is 9.3,so the project format settint would be :Xcode 9.3 - compatible
just select one under 9.3.
then pod install
fixed.....it works for me(confused 2 days),hope helps you guys!!!!!
@YouZoudeFish You save my day.... Thanks
There is another way, update to use pod 1.5.2
sudo gem install cocoapods
Thanks, it works...
OMG.....I just fixed the problem.Too many posting on the internet suggest the operation:gem install cocoapods --pre
But it doesn't work for me!
If you encounter the same probem likes me,try this
My xcode version is 9.3,so the project format settint would be :Xcode 9.3 - compatible
just select one under 9.3.
then pod install
fixed.....it works for me(confused 2 days),hope helps you guys!!!!!
Thanks a lot. It helps even today, at 2 of January, 2021.
(Such issue reproduced after installing pods for react-native v0.64.0-rc.2)
Most helpful comment
OMG.....I just fixed the problem.Too many posting on the internet suggest the operation:gem install cocoapods --pre

But it doesn't work for me!
If you encounter the same probem likes me,try this
My xcode version is 9.3,so the project format settint would be :Xcode 9.3 - compatible
just select one under 9.3.
then pod install
fixed.....it works for me(confused 2 days),hope helps you guys!!!!!