Skip to content

Instantly share code, notes, and snippets.

@tedgonzalez
Created January 5, 2020 16:34
Show Gist options
  • Select an option

  • Save tedgonzalez/782f5bc5131075e653d99f308dc70919 to your computer and use it in GitHub Desktop.

Select an option

Save tedgonzalez/782f5bc5131075e653d99f308dc70919 to your computer and use it in GitHub Desktop.
Cache cocoapods when using circleci
- restore_cache:
key: 1-pods-{{ checksum "Podfile.lock" }}
- run:
name: Install CocoaPods
command: |
if [ ! -d "Pods" ]
then
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
bundle exec pod install
fi
- save_cache:
key: 1-pods-{{ checksum "Podfile.lock" }}
paths:
- ./Pods
@Noodlekim

Copy link
Copy Markdown

@tedgonzalez
I'm so sorry about the late reply, and thanks for your kind answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment