How do I enable the In-App Purchases capability only for specific build configurations?
<p>We are building an app for a client, whose app id has the In-App Purchase entitlement.</p>

<p>When we send builds to them, we use their provisioning profiles/signing certs and all is well.</p>

<p>However, for our internal testing, we'd like to use our team's wildcard profile to get access to all of our testing devices. IAP testing is not usually a concern.</p>

<p>With Xcode 7 we were able to do this while getting around the IAP entitlement restriction, but <strong>now with Xcode 8</strong> I can no longer build and run using our wildcard profile because it checks for IAP capability pre-build.</p>

<p>So I've added an entitlements plist file to the project, but I'm unsure of the right key to use to set it either way. </p>

<p>Can the IAP capability be enabled/disabled per build configuration?</p>

<ul>
<li>I cannot find the relevant key here: <a href="https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html" rel="nofollow">https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html</a></li>
<li>I could enable/disable IAP manually whenever needed, but this require either committing my changes every time <strong>OR</strong> trying to avoid committing the changes every time.</li>
</ul>