title: CircleCI to TestFlight
body: <p>I followed <a href="https://spin.atomicobject.com/2016/07/19/circleci-test-deply-ios-app/" rel="nofollow noreferrer">this</a> article to upload my build from CircleCI to TestFlight. </p>
  
  <p>I was able to upload the build from CircleCI to Testflight. The problem is I am getting an error "Missing Beta Entitlement" in front of my build.
  I googled and found that I have to include "beta-reports-active" key in my provision profile and entitlement file.</p>
  
  <ol>
  <li><p>I added "beta-reports-active" in my entitlement file only and then I tried again. I got this error "Your provisioning profile is missing beta-reports-active".</p></li>
  <li><p>Then I manually edited provision file and added "beta-reports-active". Then I tried again and I got error "Unable to parse provision profile".</p></li>
  <li><p>Then I replaced my provision profile (which was distribution) with App Store provision profile. Then I tried again and got this error "Code Signing is required".</p></li>
  </ol>
  
  <p>My circle.yml file</p>
  
  <pre><code>machine:
  
    environment:
      GYM_CODE_SIGNING_IDENTITY: "My Code sigining identity"
  
    xcode:
      version: "8.0"
  
  
  deployment:
    beta_distribution:
      branch: master
      commands:
        - gym
        - ipa distribute:itunesconnect -i 21321478 --upload --verbose
  </code></pre>
  
  <p>Please help me on this.</p>