title: Distributing iOS App on App Store and Enterprise
body: <p><strong>TLDR :</strong> <br><br>
  A. Issue in exporting app with Enterprise Cert</p>
  
  <blockquote>
    <p>Error : wildcard app id cannot be used to create in house provisioning
    profiles</p>
  </blockquote>
  
  <p>B. Right approach to distribute app on Enterprise and AppStore</p>
  
  <p>We have been distributing apps on Apple's AppStore for years, Enterprise is new addition.
  – App has Watch App and supports iOS 8+.</p>
  
  <p>What is done so far:<br>
  – Two different dev accounts and certificates.<br>
  – Separate provisioning profiles on each accounts<br>
  – Build Config and Scheme for Enterprise a AppStore<br>
  – using Scheme/Config to switch between settings like bundleId, etc.<br>
  – Successfully Archive Enterprise Application<br></p>
  
  <p><strong>I have NOT created separate info.plist or entitlements (Do I need to?)</strong></p>
  
  <p>Issue: When I try to export Enterprise Archive, I am getting error<br></p>
  
  <blockquote>
    <p>wildcard app id cannot be used to create in house provisioning
    profiles&lt;</p>
  </blockquote>
  
  <p>I do have proper provisioning profiles created. None of them are wildcard, except created by Xcode.</p>
  
  <p>I have read <a href="https://stackoverflow.com/questions/15605566/building-app-for-app-store-and-enterprise-distribution">this post</a>, which says needs to create different targets. That is overhead of keeping both the targets in sync. <br></p>
  
  <p>Question:<br></p>
  
  <pre><code>bool itIsPossible = Can this be achieved with Configuration/Schemes?
  
  if (itIsPossible){
  – What else I need to create separate entitlements etc?
  }else{
  – Do I have to create new target to support Enterprise App?
  – Separate Target for Watch and Extension? 
  – What else I need to create separately Info.plist, entitlements etc?
  }
  </code></pre>