title: No accounts with iTunes Connect access have been found for the team
body: <p>In Xcode, when I try to <code>Product &gt; Archive &gt; Validate App</code> I get the error:</p>
  
  <blockquote>
    <p>No accounts with iTunes Connect access have been found for the team "TEAM_NAME". iTunes Connect access is required for App Store distribution.</p>
  </blockquote>
  
  <p>and/or</p>
  
  <blockquote>
    <p>No accounts with App Store Connect access have been found for the team "TEAM_NAME". App Store Connect access is required for App Store Connect distribution.</p>
  </blockquote>
  
  <p>and/or</p>
  
  <blockquote>
    <p>Unable to authenticate with App Store Connect</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/CXWRu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CXWRu.png" alt="Xcode error screenshot"></a></p>
  
  <p>How can I fix this issue and validate my app?</p>