title: Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?
body: <p>I have searched a lot on internet but non of the solutions work for me. I create an ipa with <a href="http://sap-production.github.io/xcode-maven-plugin/site/index.html" rel="nofollow noreferrer">Xcode Maven Plugin</a> It successfully builds my application and creates an ipa but when I want to upload it on testflightapp it gives me this error:</p>
  
  <pre><code>Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc?
  </code></pre>
  
  <p>I have added provisioning profile in build settings like the following pic
  <img src="https://i.stack.imgur.com/3L7zu.png" alt="enter image description here"></p>
  
  <p>If I create ipa manually with Xcode>Product>Archive I can successfully upload ipa on testflightapp. So my guess is that Xcode Maven Plugin cannot read my provisioning profile. I tried to force using provisioning profile by specifying it in pom file like bellow:</p>
  
  <pre><code>&lt;configuration&gt;
            &lt;configurations&gt;
              &lt;configuration&gt;Debug&lt;/configuration&gt;
              &lt;configuration&gt;Release&lt;/configuration&gt;
            &lt;/configurations&gt;
            &lt;provisioningProfile&gt;42CB38B0-62BB-4242-BD03-72EDB7570842&lt;/provisioningProfile&gt;
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>Any help would be appreciated.</p>