error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 해결하기 solution

썸네일

 

안녕하세요 민몽입니다 :)

Podfile.lock : No such file or dirctory error 와 같이 발생하는 The sanbox is not in sync with the Podfile.lock 해결 방법

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory 
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

Xcode의 Build Phases에 보면 Check Pods Manifest.lock에서 스크립트가 실행될 때에 발생하는 에러입니다.

diff "${PODS_PODFILE_DIR_PATH}/Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [ $? != 0 ] ; then
    # print error to STDERR
    echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
    exit 1
fi
# This output is used by Xcode 'outputs' to avoid re-running this script phase.
echo "SUCCESS" > "${SCRIPT_OUTPUT_FILE_0}"

내용을 보면 {PODS_PODFILE_DIR_PATH}와 {PODS_ROOT}가 사용되고 있는 걸 볼 수 있어요.

빌드 스키마가 여러 개가 있는데 이거 CocoaPods install을 한다고 프로젝트에 딱 맞게 설정이 안 되더라고요.

 

빈 프로젝트에 설정할 경우에는 잘 되던데.. ㅠㅠ ㅋㅋ 무튼 처음엔

Architectures도 Multiple values로 되어 있었는데 install 자체가 error가 발생하더라고요.

 

User-Defined에 PODS_PODFILE_DIR_PATH, PODS_ROOT가 제대로 설정되어 있는지 확인해줍시다.

설정이 처음에 안되어 있거나 다른 빌드 스키마일 때만 설정되어있으면 모두 설정되도록 추가 해줍시다.

(짜증 나서.. 181818로 빈 프로젝트를 만들었네요...ㅎㅎ)

The sandbox is not in sync with the Podfile.lock

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

요즘에 일하면서 에러 때문에 짜증이 많이 나네요... ㅎㅎ

그리드형(광고전용)

이 글을 공유합시다

facebook twitter googleplus kakaoTalk kakaostory naver band

댓글

Designed by JB FACTORY