Skip to content

Instantly share code, notes, and snippets.

@mishagray
Last active August 29, 2015 14:19
Show Gist options
  • Save mishagray/da2671c8ec0387909b9a to your computer and use it in GitHub Desktop.
Save mishagray/da2671c8ec0387909b9a to your computer and use it in GitHub Desktop.
Check Swift Pods Manifest.Lock script
diff "DummyProjectForSwiftPods/Podfile.lock" "DummyProjectForSwiftPods/Pods/Manifest.lock" > /dev/null
if [[ $? != 0 ]] ; then
cat << EOM
error: The sandbox is not in sync with the DummyProjectForSwiftPods Podfile.lock. Run 'pod install' from the DummyProjectForSwiftPods directory or update your CocoaPods installation.
EOM
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment