None of the valid provisioning profiles allowed the specified capabilities: Features: inAppPurchase
<p>I have working application in AppStore. It has inApp Purchases.</p>

<p>Certificate and provision profile was expired. </p>

<p>I updated it, but XCode wrote:</p>

<p><strong>"Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified capabilities: Features: inAppPurchase.."</strong></p>

<p>I pressed "Fix Issue Automatically",  XCode wrote </p>

<p><strong>"An App ID with identifier 'com.mycompany.myproj' is not available. Please enter a different string."</strong></p>

<p>This indefinier is bundle id of my application, and I did not change it.  </p>

<p>How to fix this error?</p>