Xcode 14 升级后 pod 无法使用

xcode 14升级后使用Pod出现一下错误

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 1.7.5
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
    RubyGems : 2.7.7
        Host : macOS 12.6 (21G115)
       Xcode : 14.0 (14A309)
         Git : git version 2.37.0 (Apple Git-136)
Ruby lib dir : /Users/xx/.rvm/rubies/ruby-2.5.1/lib
Repositories : xx-open-ios-specs - http://git.xx.com/open-ios/specs.git @ xx
               cocoapods- -  @ fatal: not a git repository (or any of the parent directories): .git
              
```

### Plugins

```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0
```

### Error

```
RuntimeError - [Xcodeproj] Unknown object version (56).
/Users/xx/.rvm/gems/ruby-2.5.1/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:228:in `initialize_from_file'
/Users/xx/.rvm/gems/ruby-2.5.1/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:113:in `open'
/Users/xx/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.7.5/lib/cocoapods/command/init.rb:41:in `validate!'
/Users/xx/.rvm/gems/ruby-2.5.1/gems/claide-1.1.0/lib/claide/command.rb:333:in `run'
/Users/xx/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
/Users/xx/.rvm/gems/ruby-2.5.1@global/gems/cocoapods-1.7.5/bin/pod:55:in `'
/Users/xx/.rvm/gems/ruby-2.5.1@global/bin/pod:23:in `load'
/Users/xx/.rvm/gems/ruby-2.5.1@global/bin/pod:23:in `

'

最后使用

sudo gem install xcodeproj

完美解决

你可能感兴趣的:(xcode,macos,ide)