title: Xcode has conflicting provisioning settings
body: <p>I have an Ionic 2 app, which builds and is testable in <code>Xcode 8.2.1</code> Simulator environment, e.g. <code>iPhone7</code> (<code>Build Successful</code>).</p>
  
  <p><a href="https://i.stack.imgur.com/p0jSM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/p0jSM.png" alt="enter image description here"></a></p>
  
  <p>When I try <code>Archive</code> the app to create an <code>ipa</code> file to set on a device, I follow <a href="https://stackoverflow.com/questions/25970741/how-to-create-ipa-in-xcode-6">these</a> instructions. But <code>Product -&gt; Archive</code> is greyed out. So I change the active scheme to <code>Generic iOS Device</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/1fT6n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1fT6n.png" alt="enter image description here"></a></p>
  
  <p>But then when I click <code>Product -&gt; Archive</code>, I get <code>Build Failed</code>.</p>
  
  <blockquote>
    <p>theWhoZoo has conflicting provisioning settings. theWhoZoo is
    automatically signed for development, but a conflicting code signing
    identity iPhone Distribution has been manually specified. Set the code
    signing identity value to "iPhone Developer" in the build settings
    editor, or switch to manual signing in the project editor. Code
    signing is required for product type 'Application' in SDK 'iOS 10.2'</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/F51VH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/F51VH.png" alt="enter image description here"></a></p>
  
  <p>If anyone could advise how I can fix this to build an Archive, I would appreciate it.</p>