title: How to sign an ad-hoc iOS build without beta-reports-active entitlement?
body: <p>I'm trying do an ad-hoc distribution of an app, I'm building it succesfully but getting the next error when trying to install it though iTunes:</p>
  
  <pre><code>MIS: entitlement 'beta-reports-active' has value not permitted by provisioning profile 'name_of_prov_file'
  </code></pre>
  
  <p>The beta-reports-active field is not set in the ad-hoc provisioning file, which is fine, but for some reason this entitlement is being added to the app in the embedded.mobileprovision file within the IPA. I think this is the problem.</p>
  
  <p>I tried specifying a custom entitlements plist with:</p>
  
  <pre><code> &lt;dict&gt;
     &lt;key&gt;application-identifier&lt;/key&gt;
     &lt;string&gt;xxxxxxxx&lt;/string&gt;
     &lt;key&gt;beta-reports-active&lt;/key&gt;
     &lt;false/&gt;
   &lt;/dict&gt;
  </code></pre>
  
  <p>This is showing up in the IPA in the archived-expanded-entitlements.xcent file. But the embedded.mobileprovision file still has it set to true.</p>
  
  <p>I'm using these export options:</p>
  
  <pre><code>   &lt;key&gt;method&lt;/key&gt;
     &lt;string&gt;ad-hoc&lt;/string&gt;
     &lt;key&gt;uploadSymbols&lt;/key&gt;
     &lt;true/&gt;
     &lt;key&gt;teamID&lt;/key&gt;
     &lt;string&gt;xxxxxxxxxxxx&lt;/string&gt;
     &lt;key&gt;compileBitcode&lt;/key&gt;
     &lt;false/&gt;
  </code></pre>
  
  <p>And these commands:</p>
  
  <pre><code>xcodebuild -alltargets -configuration Release clean build archive -archivePath $PWD/build/archive.xcarchive -scheme projectname -sdk iphoneos9.3 "CODE_SIGN_IDENTITY=${CODE_SIGN_IDENTITY}" "CODE_SIGN_ENTITLEMENTS=entitlements.plist"
  xcodebuild -exportArchive -archivePath $PWD/build/archive.xcarchive -exportPath $PWD/build/ -exportOptionsPlist exportOptions.plist
  </code></pre>
  
  <p>It's a Cordova application so it's not being developed with XCode and this is a Jenkins automated build. </p>
  
  <p>Note: I can successfully do an app-store build for test flight, this is not what this questions is about.</p>