title: Re-sign IPA exported with export_method "app-store" with an adhoc provisioning profile
body: <p>I'm using fastlane to create an IPA file using</p>
  <pre><code>build_app(export_method: &quot;app-store&quot;,scheme: &quot;my-scheme&quot;,clean: true)
  </code></pre>
  <p>I can upload this to the app store just fine. What I'm trying to do after is (without rebuilding/reexporting the IPA using <code>export_method: ad-hoc</code>) to distribute this same built IPA using an adhoc provisiong profile instead of an app-store profile</p>
  <pre><code>resign(
          ipa: &quot;fastlane/build/app.ipa&quot;,
          signing_identity: &quot;Apple Distribution: Blah (1234)&quot;,
          display_name: &quot;new name Beta&quot;,
          short_version: current_version + &quot;-beta&quot;
      )
  </code></pre>
  <p>However, when i try to install the re-signed ipa, i get</p>
  <blockquote>
  <p>this app cannot be installed because its integrity could not be verified</p>
  </blockquote>
  <p>I tried building a brand new IPA using that same provisioning profile but with the proper export_method ad-hoc and this works, so I know the PP works fine. This means that the problem really is with the re-signing</p>
  <p>Is this combination of exporting using method <code>app-store</code> and then re-signing it with an ad-hoc provisioning profile just not possible?</p>
  <p>My build is very slow, so i'm trying to take advantage of the existing IPA instead of creating a new one for a beta build</p>