Podfile.lock: No such file or directory 마주하게 되는 경우

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock build/Build/Intermediates.noindex/MyProject.build/Debug-iphonesimulator/MyProject.build/Script-398DDAA771204D4A0EBA6418.sh
    cd /Users/workspace/MyProject/ios
    /bin/sh -c /Users/workspace/MyProject/ios/build/Build/Intermediates.noindex/MyProject.build/Debug-iphonesimulator/MyProject.build/Script-398DDAA771204D4A0EBA6418.sh

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.

다음의 명령어를 수행해도 문제는 여전했습니다.

rm -rf Pods/ Podfile.lock
pod install

이 때 아래의 방법을 통하여 해결을 하였습니다.

gem install cocoapods-deintegrate
cd ios
pod deintegrate
pod install
cd ..
react-native run-ios

참조 URL

2개의 좋아요