gpt4 book ai didi

xcode - pod deintegrate 抛出 RuntimeError - [Xcodeproj] 未知对象版本 (56)

转载 作者:行者123 更新时间:2023-12-02 01:30:32 24 4
gpt4 key购买 nike

在/ios 下针对 React Native 0.68.2 项目运行 pod deintegrate 时出现错误:

RuntimeError - [Xcodeproj] Unknown object version (56).
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:228:in `initialize_from_file'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/xcodeproj-1.21.0/lib/xcodeproj/project.rb:113:in `open'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods/command/deintegrate.rb:40:in `validate!'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:333:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.11.3/libexec/bin/pod:25:in `<main>'

这是pod env的输出:

### Stack

```
CocoaPods : 1.11.3
Ruby : ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
RubyGems : 3.3.11
Host : macOS 12.5 (21G72)
Xcode : 14.0 (14A5270f)
Git : git version 2.32.3 (Apple Git-135)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.1.2/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
```

### Plugins

```
cocoapods-deintegrate : 1.0.5
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
```

这是 ruby -versionwhich ruby​​ 的输出:

ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-e:1:in `<main>': undefined local variable or method `rsion' for main:Object (NameError)

/usr/bin/ruby

网上有很多类似的问题。 gem update xcodeproj 没有帮助,因为没有更新。

最佳答案

编辑 YourProject.xcodeproj/project.pbxproj 文件并将 objectVersion 值更改为 55 将作为解决方法

// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 55;
objects = {

关于xcode - pod deintegrate 抛出 RuntimeError - [Xcodeproj] 未知对象版本 (56),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73396067/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com