Unable to upload app to iTunes Connect - iTunes Store operation failed. Authentication timeout
<p>I'm trying to upload my app to iTunes Connect with Xcode. I chose product > archive, choose my account, it compiles and when I try to upload it hand for a long time on:</p>

<pre><code>Uploading Archive
Sending API usage to iTunes Connect...
</code></pre>

<p>Then it shows an error message:</p>

<p><img src="https://i.stack.imgur.com/C1OK3.png" alt="Archive upload failed with errors: iTunes Store operation failed. Authentication timeout. Please restart Xcode"></p>

<p>I've restarted Xcode and the entire machine but still it keeps repeating itself.</p>

<p>What's wrong here?</p>