今天创建项目在终端输入pod init 后报错,错误如下
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod init
Report
-
What did you do?
-
What did you expect to happen?
-
What happened instead?
Stack
CocoaPods : 1.4.0.beta.1
Ruby : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16]
RubyGems : 2.6.13
Host : Mac OS X 10.14 (18A391)
Xcode : 10.0 (10A255)
Git : git version 2.17.1 (Apple Git-112)
Ruby lib dir : /Users/tantanwei/.rvm/rubies/ruby-2.3.0/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ d556718064259afde401cd466d3e035ac5a60d08
Specs - https://github.com/CocoaPods/Specs @ 12da91ace4cc536860abe544bdfc6765a7c29873
Plugins
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
Error
RuntimeError - [Xcodeproj] Unknown object version.
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:217:in `initialize_from_file'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/xcodeproj-1.5.2/lib/xcodeproj/project.rb:102:in `open'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command/init.rb:41:in `validate!'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/claide-1.0.2/lib/claide/command.rb:333:in `run'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/lib/cocoapods/command.rb:52:in `run'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.4.0.beta.1/bin/pod:55:in `<top (required)>'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod:23:in `load'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/pod:23:in `<main>'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/Users/tantanwei/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=%5BXcodeproj%5D+Unknown+object+version.&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
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...
- ERROR | [iOS] unknown: Encountered an unknown error (Malformed version number string ) during validation.
https://github.com/CocoaPods/CocoaPods/issues/8240 [open] [11 comments]
19 minutes ago
- ERROR | [iOS] unknown: Encountered an unknown error (Malformed version number string ) during validation.
-
Pod Update: RuntimeError - [Xcodeproj] Unknown object version. Xcode Beta 5
https://github.com/CocoaPods/CocoaPods/issues/8003 [closed] [18 comments]
3 days ago -
RuntimeError - [Xcodeproj] Unknown object version.
https://github.com/CocoaPods/CocoaPods/issues/6992 [closed] [13 comments]
3 weeks ago
and 43 more at:
https://github.com/cocoapods/cocoapods/search?q=[Xcodeproj]%20Unknown%20object%20version.&type=Issues&utf8=✓
这里默认为9.3了,这时只要改为8.0
image.png
再次pod init 就行了
网友评论