Just to simplify what Aviv mentioned, if you want to completely remove all traces of any pods from a project then just delete all of the pod related files from your project folder and run:
sudo gem install cocoapods-deintegrate
pod deintegrate
And the sandbox Podfile.lock error should go away.