title: Apple TestFlight upload warning ITMS-90191: missing `beta-reports-active` entitlement
body: <p>When I upload a build to the new Apple owned and iTunes Connect-integrated TestFlight, I see the following log:</p>
  <blockquote>
  <p>WARNING ITMS-90191: &quot;Missing beta entitlement. Your app does not include the beta-reports-active entitlement. If you intend to distribute this build via TestFlight for beta testing, please re-build this app with a newly generated provisioning profile.&quot;</p>
  </blockquote>
  <p>When I look at the build on iTunes Connect, I also see the following warning:</p>
  <p><img src="https://i.stack.imgur.com/Oxem9.png" alt="To use TestFlight Beta Testing, build X.Y.Z must contain the correct beta entitlement. For more information, see the FAQ." /></p>
  <blockquote>
  <p>To use TestFlight Beta Testing, build X.Y.Z must contain the correct beta entitlement. For more information, see the FAQ.</p>
  </blockquote>
  <p>The linked FAQ states:</p>
  <blockquote>
  <h3>What should I do if my prerelease build does not contain the correct beta entitlement?</h3>
  <p>To use the TestFlight app to test your prerelease build, it must be signed with an App Store Distribution Provisioning profile that includes the beta entitlement. New Distribution Provisioning profiles generated in the iOS Developer Center will automatically contain the beta entitlement.</p>
  <p>If you have an existing Distribution Provisioning Profile that was generated before the launch of TestFlight Beta Testing, you must regenerate the profile.</p>
  </blockquote>
  <p>The problem is that I <em>am</em> using a newly created App Store Distribution Provisioning Profile. I created it like so:</p>
  <p><img src="https://i.stack.imgur.com/QgDaM.png" alt="App Store Distribution Provisioning Profile" /></p>
  <p>When I inspect the source of the downloaded Provisioning Profile, I see:</p>
  <pre><code>&lt;key&gt;Entitlements&lt;/key&gt;
  &lt;dict&gt;
      // ...
      &lt;key&gt;aps-environment&lt;/key&gt;
      &lt;string&gt;production&lt;/string&gt;
      &lt;key&gt;beta-reports-active&lt;/key&gt;
      &lt;true/&gt;
      // ...
  </code></pre>
  <p>So the Provisioning Profile is set for <code>production</code> and <strong>does</strong> contain the <code>beta-reports-active</code> entitlement.</p>
  <p>However, iTunes Connect continues to complain when this build is uploaded to TestFlight.</p>
  <p>Any ideas on how to fix this issue? Is this an Apple bug?</p>
  <p>rdar://20128048</p>