title: How to solve? "An unexpected error occurred. Please try again."?
body: <p>I go to organizer. I press</p>
  
  <p>Devices</p>
  
  <p>Then I go to editor and Refresh from developer portal.</p>
  
  <p>I got this error:</p>
  
  <pre><code>An unexpected error occurred. Please try again.  If the problem persists, please contact Apple Developer Program Support.
  </code></pre>
  
  <p>So I deleted all certificate or anything xcode related from my keychain. I deleted all certificate from apple developer center. Same problem.</p>
  
  <p>Then I do it again.</p>
  
  <p>First xcode says that there is no certificate. Want to make one. Sure. </p>
  
  <p>Certificate is indeed created.</p>
  
  <p>Then I got that message <code>An unexpected error occurred. Please try again.  If the problem persists, please contact Apple Developer Program Support.</code></p>
  
  <p>It seems that I need to have some code signing identity. But how to make that and where is it? It's not available in itunes connect or apple developer program support.</p>
  
  <p>I thought my certificate is my identity.</p>
  
  <p>There is a similar question already. It says to delete both in Apple developer center and in xcode. I did that. It doesn't work.</p>
  
  <p>Sometimes I got a message whether I want to sign with  Looks like some key is wrong. But what?</p>
  
  <p>When I tried to run a program I got:</p>
  
  <p>(null):  Application failed codesign verification.  The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)</p>
  
  <p>When I go to organizer and submit my application to create that distribution certificate I got No identities available for signing.</p>
  
  <p>So I download identities. Then I got an error occurred while attempting to download. Please try again.</p>
  
  <p>There is also an option saying </p>
  
  <p>Import developer profile. I guess I have to recreate this so called developer profile. What is it? And how?</p>
  
  <p>According to this, after I create my first certificate I will be asked if I want to create a developer profile.</p>
  
  <p>That never happens. I just got "An unexpected error occured" again.</p>