CocoaPods pod init失败 - undefined method `map‘ for nil -PBXFileSystemSynchronizedRootGroup

pod init 失败

Command

/Users/yh/.rbenv/versions/3.3.4/bin/pod init

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23]
    RubyGems : 3.5.22
        Host : macOS 15.0.1 (24A348)
       Xcode : 16.0 (16A242d)
         Git : git version 2.39.5 (Apple Git-154)
Ruby lib dir : /Users/yh/.rbenv/versions/3.3.4/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Error

RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["F82B00852CC11D3300D614C6"], "path"=>"03-", "sourceTree"=>"<group>"}`

解决方法

请添加图片描述

pod install失败

  • preferredProjectObjectVersion"=>“77”
[!] [!] Xcodeproj doesn't know about the following attributes {"preferredProjectObjectVersion"=>"77"} for the 'PBXProject' isa.
If this attribute was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new

[!] [Xcodeproj] Xcode project version (77) is higher than the latest supported by xcodeproj (63)

  1. 打开xx.xcodeproj 文件.
    在这里插入图片描述
  2. 修改objectVersion
    在这里插入图片描述

stackoverflow

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值