Error
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
YouCanDoIt
2023. 5. 12. 14:55
Background:
Flutter project를 ios 시뮬레이터로 실행시킬 때 xcode에서 다음과 같은 에러가 발생했다.
Error: 'The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.'
Solution:
1. runner > Build Phases > Link Binary With Libraries 에 있는 파일을 모두 삭제한다.
2. 프로젝트 폴더에 들어가서 > ios 폴더에서 다음 코드를 실행한다 (Podfile.lock 삭제 후 pod install)
$ cd {flutter-project}/ios // flutter project의 ios 디렉토리로 이동
$ rm Podfile.lock
$ pod install
에러 해결!
이 과정후 xcode에서 run 버튼을 다시 눌러주니 'Build Success'가 됐다.
*reference
https://velog.io/@terman/Xcode-Build-Failed
Flutter iOS Xcode Build Failed: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods ins
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.flutter build 를 통한 ios-simulator에서는 build가 잘
velog.io