Cocoapods RuntimeError - [Xcodeproj] Unknown object version.

由于最近我的iPhone6s一直跟进最新的ios11.3beta版系统,所以导致xcode9.2无法在这部手机上跑真机项目(安装了11.3开发包也不行,如果你有解决方案可以给我留言).无奈之下我安装了最新的xcode9.3beta3版解决了这个问题,但今天在用cocoapods时pod init又出现问题

RuntimeError - [Xcodeproj] Unknown object version.
下面是几个类似问题的解决方案
Looking for related issues on cocoapods/cocoapods...

  • RuntimeError - [Xcodeproj] Unknown object version.
    https://github.com/CocoaPods/CocoaPods/issues/7458 [closed] [4 comments]
    a week ago

  • RuntimeError - [Xcodeproj] Unknown object version.
    https://github.com/CocoaPods/CocoaPods/issues/6992 [closed] [7 comments]
    2 weeks ago

  • RuntimeError - [Xcodeproj] Unknown object version.
    https://github.com/CocoaPods/CocoaPods/issues/6991 [closed] [11 comments]
    4 weeks ago

只需在终端运行一条命令即可解决:
gem install xcodeproj

你可能感兴趣的:(Cocoapods RuntimeError - [Xcodeproj] Unknown object version.)