XCode 버전을 16으로 업그레이드하고 새로운 iOS 프로젝트를 생성 후 Cocoapod을 적용하는 과정에서 오류가 발생했다.
RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "path"=>"jungle-snakeTests", "sourceTree"=>"<group>"}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:349:in `object_with_uuid'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:299:in `each'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:296:in `each'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:287:in `each'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:272:in `new_from_plist'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:213:in `initialize_from_file'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/xcodeproj-1.25.1/lib/xcodeproj/project.rb:113:in `open'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/command/init.rb:41:in `validate!'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:333:in `run'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Users/green/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/Users/green/.rbenv/versions/2.7.6/bin/pod:23:in `load'
/Users/green/.rbenv/versions/2.7.6/bin/pod:23:in `<main>'
검색해보니 Cocoapod 의 Github에 아래와 같은 글이 등록되어있다.
https://github.com/CocoaPods/CocoaPods/issues/12456#issuecomment-2361822070
`PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` · Issue #12456 · CocoaPods/
Command /usr/local/bin/pod init Report What did you do? run pod init after create a new iOS app using Xcode 16 beta 3 What did you expect to happen? creates the Podfile What happened instead? show ...
github.com
이 글에서 언급된대로 XCode 화면에서 프로젝트 하위 폴더에서 마우스 오른쪽 버튼을 클릭하면 아래와 같이 "Convert to Group"메뉴가 나오고 폴더들마다 저 메뉴를 실행해준 후 pod 명령어를 내리면 된다.
프로젝트 하위의 폴더들은 모두 Group으로 바꿔주어야 한다. (Test 폴더들 포함)
프로젝트 파일을 열어서 TextEditor로 수정해주라는 글들이 많은데 이 방법이 가장 쉽고 깔끔하다.
다만, 이 문제 해결 이후 이어지는 새로운 문제가 있다.
https://blockcode.tistory.com/7?category=1093391
$ pod init[!] [!] Xcodeproj doesn't know about the following attributes {"preferredProjectObjectVersion"=>"77"} for the 'PBXProj
XCode16으로 업데이트 후 새로운 프로젝트에 Cocoapod을 적용하는 과정에서 오류가 발생했었다. https://blockcode.tistory.com/6 CocoaPod: RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSyste
blockcode.tistory.com