In Xcode, when I try to Product > Archive > Validate App
I get the error:
No accounts with iTunes Connect access have been found fo
Just restart not only Xcode, but also the OS. Didn't believe it, but really, just restart.
Remove all apple accounts close xcode restart mac add apple account it will work
UPDATE XCODE 10
September 2019
If closing Xcode doesn't work, try logging out and logging in with the Apple Developer Account, which may not be the same as the iCloud account in many cases.
These two steps would solve 95% of these error cases.
Seems to be a lot of solutions to this problem and none of the above worked for me. What did work for me was going into Keychain
and deleting some old expired certificates.
Another solution that works for me is to disable Automatically manage signing
and the restart the Xcode.
Then I enable again the Automatically manage signing
to upload the application.
Hope that helps.
Make sure apple store domain can be accessed, in my case it was blocked by network admin, i found this after struggling for 2 days in this