Unable to fix code signing issue error in Xcode
<p>I am trying to launch my app on an i-pad.</p>

<p>I have connected my iPad to Mac and then ran the solution. I got an error saying "Failed to code sign "myAppName". None of the valid provisioning profiles include the devices: "myDeviceName". Xcode can attempt to fix this issue. This will reset your code signing and provisioning settings to recommended values and resolve issues with signing identities and provisioning profiles." with a fix issue button. </p>

<p>Upon clicking the fix issue button, I got another error saying - "Unable to fix code signing issue. Xcode failed to resolve the issue. Check your code signing settings; ensure you have a matching signing certificate and provisioning profile installed; and try again."</p>

<p>Then I tried to click on fix-issue in the Xcode->Project->General Window.
<a href="http://i.stack.imgur.com/WT3gR.png" rel="nofollow">enter image description here</a></p>

<p>But then got another error msg saying - "The 'In-App Purchase' feature is only available to users enrolled in Apple Developer Program. Please visit 
developer.apple.com/programs/ to enroll."<br>
<a href="http://i.stack.imgur.com/JhPGi.png" rel="nofollow">enter image description here</a></p>

<p>I do not need in-app purchasing, but still I am not able to disable it. 
I have been stuck with this issue since few days, not able to find a workaround.</p>

<p>I tried revoking my apple certificate, deleting all the existing profiles and downloading them again, but nothing seems to work.</p>

<p>Any suggestions would be helpful.</p>