致电macOS专家... 非常感谢您帮助您解决在flutter上安装Pod的问题-详情在此
command used
/usr/local/bin/pod install --verbose
CocoaPods : 1.9.1
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.1.2
Host : Mac OS X 10.15.4 (19E266)
Xcode : 11.4 (11E146)
Git : git version 2.24.1 (Apple Git-126)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
错误
RuntimeError - [Xcodeproj] Unknown object version.
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:227:in
答案 0 :(得分:0)
有什么帮助:
gem install cocoapods --pre
也许
gem update
来源:https://github.com/CocoaPods/CocoaPods/issues/7697 https://github.com/CocoaPods/CocoaPods/issues/7458
答案 1 :(得分:0)
2个步骤来解决..
gem安装cocoapods --pre gem install mygem --user-install
,瞧。您几天的问题就解决了...