민프

[IOS Error] Xcode 에러 The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 본문

[IOS Error]

[IOS Error] Xcode 에러 The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

민프야 2024. 3. 14. 11:23

이슈

The sandbox is not in sync with the Podfile.lock.
Run 'pod install' or update your CocoaPods installation.

Xcode에서 RUN을 했을 때 위 와 같은 에러가 나왔습니다.

위 에러 메시지가 나타나는 것은 CocoaPods 관련 파일이 최신 상태가 아니거나 동기화되지 않았음을 나타냅니다.

(여기에서 CocoaPods는 iOS 및 macOS 프로젝트의 의존성 관리자로, 필요한 외부 라이브러리나 프레임워크를 프로젝트에 쉽게 추가할 수 있게 도와주는 역할을 합니다.)

해결

1. Xcode 종료

2. 터미널을 켜서 프로젝트의 경로에 접근 (Flutter라면 /ios)

3. rm -rf Pods

4. rm -rf Podfile.lock

5. pod install

6. xcode 실행 후 빌드 실행

Comments