title: CircleCI for iOS - caching cocoapods dependencies
body: <p>I'm trying to run my iOS testsuite in CircleCI using <code>fastlane scan</code>. Running the tests is working great, but the total time is increased a lot by installing dependencies from cocoapods.</p>
  
  <p>I've tried to cache the Pods directory by doing the following, however, the checksum is changing between the <code>restore_cache</code> step and the <code>save_cache</code> step:</p>
  
  <pre><code>- restore_cache:
      key: 1-pods-{{ checksum "Podfile.lock" }}
  - run:
      name: Install Pods
      command: pod install
  - save_cache:
      key: 1-pods-{{ checksum "Podfile.lock" }}
      paths:
        - ./Pods
  </code></pre>
  
  <p>Essentially, the <code>pod install</code> causes the checksum to change even if none of the pods have changed.  As such, the key under which it's saved in cache never lines up with what's trying to be restored from cache.</p>
  
  <p>Is there a better way to do this?</p>