distribution provisioning and code signing issues <p>I just generated a ad hoc distribution provisioning. I dragged this into xcode and then set my ad hoc build to be iphone distribution. Followed every single step in this <a href="http://support.testflightapp.com/kb/tutorials/how-to-create-an-ipa-xcode-4" rel="nofollow noreferrer">tutorial</a>. The issue is that when I follow this instruction to see my list of devices it doesn't even have a ProvisionedDevices key in the embedded.mobileprovison. The key goes something like this:</p> <pre><code>&lt;key&gt;Entitlements&lt;/key&gt; &lt;dict&gt; &lt;key&gt;application-identifier&lt;/key&gt; &lt;string&gt;8CH38P5X6X.*&lt;/string&gt; &lt;key&gt;get-task-allow&lt;/key&gt; &lt;false/&gt; &lt;key&gt;keychain-access-groups&lt;/key&gt; &lt;array&gt; &lt;string&gt;8CH38P5X6X.*&lt;/string&gt; &lt;/array&gt; &lt;/dict&gt; &lt;key&gt;ExpirationDate&lt;/key&gt; &lt;date&gt;2012-03-17T00:31:45Z&lt;/date&gt; &lt;key&gt;Name&lt;/key&gt; &lt;string&gt;Fever&lt;/string&gt; //this is not my app name, how come it's here &lt;key&gt;TimeToLive&lt;/key&gt; &lt;integer&gt;291&lt;/integer&gt; &lt;key&gt;UUID&lt;/key&gt; &lt;string&gt;101F3A06-B33C-411A-8173-A4CEAFF5E673&lt;/string&gt; &lt;key&gt;Version&lt;/key&gt; &lt;string&gt;101F3A06-B33C-411A-8173-A4CEAFF5E673&lt;/string&gt; &lt;key&gt;Version&lt;/key&gt; &lt;integer&gt;1&lt;/integer&gt; &lt;/dict&gt; &lt;/plist&gt; </code></pre> <p>The weirdest issue is that it has an app name in the , which is not my app name!! How is this even possible? Something is messed up..</p> <p>This 8CH38P5X6X is also the App ID of my other app called Fever... how.. how is this possible. I've code signed adhoc using iphone distribution and it clearly says this:</p> <p><img src="https://i.stack.imgur.com/icqfU.png" alt="enter image description here"></p> <p><strong>UPDATE:</strong></p> <p>I removed/clear the provisioning profile that I have for the Fever app, restart xcode, and tried to build the archive again and it works! Anyone ever have issues with multiple provisioning profile on your xcode being mixed up like this?</p>