Xcode 16: pod init 실패

ddudios·2024년 10월 8일

문제

터미널에서 pod init으로 Podfile이 생성 되지 않음


  • 터미널 에러: 'PBXGroup'이 알 수 없는 ISA 객체 'PBXFileSystemSynchronizedRootGroup' 초기화 시도

    RuntimeError - PBXGroup attempted to initialize an object with unknown ISA PBXFileSystemSynchronizedRootGroup from attributes: {"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["B01508442CB4AB22002FE355"], "path"=>"프로젝트명", "sourceTree"=>"<group>"}
    If this ISA was generated by Xcode please file an issue:

  • 'PBXFileSystemSynchronizedRootGroup'을 'PBXGroup'으로 변경하면 됨

  • 이는 Folder를 Group으로 만들면 됨


해결방법

  1. Xcode 에서 폴더 우클릭
  2. 'Convert to Group'을 선택

    이후 터미널에서 다시 pod init을 시도해보면 Podfile이 성공적으로 생성되는 것을 볼 수 있다

원인

  • Group
    • 실제 파일 시스템의 폴더와는 무관하며, Xcode 프로젝트 파일에 개별 파일 경로가 기록됨
    • Group을 사용하면 CocoaPods가 의존성 파일의 정확한 경로를 인식하고 빌드할 수 있음
  • Folder
    • Xcode 프로젝트 파일에는 폴더 전체에 대한 참조만 기록되고, 개별 파일에 대한 경로는 기록되지 않음
    • Folder를 사용하면 CocoaPods가 파일 경로를 인식하지 못함

0개의 댓글