title: iOS how to add a provisioning profile
body: <p>I am using <code>Xcode Version 8.3.3 (8E3004b)</code>. I have an app developed that I would like to deploy to Apple's App Store.</p>
  
  <p>In order to Archive and deploy, I understand I first need a provisioning profile. So, in the developer console, I set up an <strong>iOS Distribution Provisioning Profile</strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/kZz4d.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kZz4d.png" alt="enter image description here"></a></p>
  
  <p>I also have the following certificates:</p>
  
  <p><a href="https://i.stack.imgur.com/pejoz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pejoz.png" alt="enter image description here"></a></p>
  
  <p>On my MacBook, I added the following certificates to the key chain:</p>
  
  <p><a href="https://i.stack.imgur.com/rWHBM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rWHBM.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/3k2PG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3k2PG.png" alt="enter image description here"></a></p>
  
  <p>Then when I go to Xcode, I would expect to have a Provisioning Profile:</p>
  
  <p><a href="https://i.stack.imgur.com/ARH8R.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ARH8R.png" alt="enter image description here"></a></p>
  
  <p>But as you can see, it <code>Failed to create provisioning profile</code> and <code>No profiles for 'com.ionicframework.thewhozoo912107' were found</code>.</p>
  
  <p>I am obviously missing some step in order to create the Provisioning Profile in order to distribute the app to the Apple App Store.</p>
  
  <p><strong>Question</strong></p>
  
  <p>If anyone can suggest what I need to do in order to create a working provisioning profile in order to distribute the app, I would appreciate the help.</p>
  
  <p><strong>More info:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/xN1t5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xN1t5.png" alt="enter image description here"></a></p>