The sandbox is not in sync with the Podfile.lock on Jenkins server

Viewed 10082

I'm having a problem with cocoapods.

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

Although, I tried to remove folder Pods, file Podfile.lock and delete workspace project then opened up the terminal and typed pod install but still error.

1 Answers

I used these commands to solve the problem.

pod deintegrate
sudo gem install cocoapods-clean
pod clean
# Open the project and delete the “Pods” folder that should be red
pod setup
pod install
Related