293

In Xcode, when I try to Product > Archive > Validate App I get the error:

No accounts with iTunes Connect access have been found for the team "TEAM_NAME". iTunes Connect access is required for App Store distribution.

and/or

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.

and/or

Unable to authenticate with App Store Connect

Xcode error screenshot

How can I fix this issue and validate my app?

pkamb
  • 33,281
  • 23
  • 160
  • 191
John
  • 3,769
  • 4
  • 12
  • 23
  • 1
    I am having the same issue as of today. – Jay Ordway Apr 01 '18 at 00:27
  • 1
    I'm having the same issue. iTunes Connect has been a mess for the last month or so. I was able to get it uploaded by using the Application Loader. Funny thing; is that I have 3 apps that I'm uploading simultaneously. The first app went up, no problem. The second app puked this way. I cleaned rebuilt, and tried again. That worked. The third one refused to upload, no matter what. I exported, then used Application Loader, and that worked. – Chris Marshall Apr 03 '18 at 00:10
  • 3
    Deleting `DerivedData` and doing a clean build fixed the issue for me. – Dan Dyer Apr 04 '18 at 15:21
  • 4
    Restart Xcode solved my issue. This isn't 1st time, and will not be last time.What a worst software quality...... I can't even count how many times I have to restart Xcode, restart OSX, or get into terminal to run some creepy command to get Xcode work as it should be ...... – RRTW Jun 18 '19 at 03:09
  • Check space on disk in my case there was not space so i clean some data and fixed the issue – vp2698 Sep 01 '20 at 14:44

32 Answers32

731

Solution 1:

  • Quit Xcode completely and re-open it to resolve the problem.

Solution 2:

  • Please verify if it's App Store distribution profile or not.
  • If yes then try to login to Xcode with your apple Id which has access to iTunes Connect or App Store Connect.
  • While validating the archive file please choose the same profile. It should work fine.
Bappaditya
  • 9,494
  • 3
  • 20
  • 29
360

When this happens to me, closing Xcode completely and re-opening it solves the problem.

Lucky
  • 4,443
  • 2
  • 8
  • 18
38

Ran into this problem just now. Complete shutdown and restart of Xcode did the trick for me.

Andy
  • 829
  • 6
  • 11
26

Just restart Xcode and it will work :)

Definitely it will work in Xcode 9 alternate you can try with Application Loader.

pkamb
  • 33,281
  • 23
  • 160
  • 191
Lakshay Sharma
  • 1,347
  • 12
  • 13
16

Swift 5, iOS 13

Just restart Xcode, everything works

Sky
  • 2,212
  • 3
  • 14
  • 22
7

Make sure that your network firewall doesn`t block iTunes connect domain. You might experience with the same message if it is blocked.

For me, iTunes & AppStore access is blocked firewall network level. I restart Xcode and mac, it worked like charm.

Nagendra Badiganti
  • 2,099
  • 2
  • 22
  • 30
  • This was my issue. Once it was unblocked from network firewall it started working. Upvoting this answer as the error message on Xcode is misleading and I wasted a lot of time reaching the root cause. – Sayalee Pote Feb 13 '19 at 04:38
6

Restart Xcode or Restart your mac, In my case I just restart Xcode

Md. Ibrahim
  • 1,239
  • 14
  • 18
6

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.

Helen Wood
  • 1,872
  • 2
  • 26
  • 41
6

Another solution that works for me is to disable Automatically manage signing and then restart the Xcode.

Then I enable again the Automatically manage signing to upload the application.

Hope that helps.

yannisalexiou
  • 605
  • 12
  • 25
5

Go to: Xcode > Preferences...

  1. Remove your account
  2. Add your apple ID again

    Accounts

Haroldo Gondim
  • 7,725
  • 9
  • 43
  • 62
4

For the XCode 12 and above. Closing the Xcode and reopen solved the issue.

Ali Qaderi
  • 471
  • 7
  • 16
3

Just restart not only Xcode, but also the OS. Didn't believe it, but really, just restart.

Marwin Lebensky
  • 270
  • 1
  • 2
  • 16
2

I tried these three solutions and things were back to normal

Solution 1:

Completely close Xcode and Safari.

Solution 2:

Logout and login your apple developer account in Xcode preferences

Solution 3:

Go to your Keychain and deleting the old expired certificates.

Ankit Kumar Gupta
  • 3,994
  • 4
  • 31
  • 54
1

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

1

I had a similar issue. Turned out that App Store was blocked by IT (arrrggggg!!!). Try a different network or ask IT to unblock then should work but first check that you can access App Store

Lightwaxx
  • 625
  • 1
  • 8
  • 18
1

Previous answers didn't work for me, including restarting, quitting Xcode and refreshing profiles.

Disconnected from company VPN and instantly started working.

PaulB
  • 962
  • 7
  • 15
1

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.

cbiggin
  • 1,942
  • 1
  • 17
  • 18
1

UPDATE XCODE 11

If the restarting of Xcode doesn't work, then try logout and login again in with the Apple Developer Account in the xcode.

Process:

Xcode > Preferences

Remove your account by clicking on - sign button

Add your apple ID again by clicking on the plus (+) sign button

Ashu
  • 3,373
  • 38
  • 34
1

I experienced this problem just now. Complete shutdown and restart of Xcode did NOT do the trick for me at first! I also had to close the Safari browser which was running in the background.

After both Xcode and Safari was completely closed. I open Safari and navigated to the "App store connect" page -> login. Then I opened Xcode -> run Archive - Validate. and it worked :)

Explanation of problem maybe. I have changed WiFi connections, from office to home office with both Xcode and the Safari browser open, and they must then have gotten confused of the wifi change, and remembered old connection data.

Bo Kristensen
  • 1,460
  • 11
  • 8
0

I had the same issue today .I had logged in with the apple id to an iOS device and linked with iCloud that was creating issue to me so once i removed the account from the device it worked fine for me.

Jincy Varughese
  • 194
  • 2
  • 10
0

For me, this happened when I have the same Apple Id added to the accounts of Xcode on two devices. After removing the account from one device, the other one can upload to App Store fine. I did restart Xcode after removing, not sure if that's necessary. Maybe it's more like a session expires or connection issue.

nunuh89
  • 543
  • 1
  • 5
  • 11
0

I know this has been solved, but none of the listed solutions worked for me and in case someone else is also experiencing this issue- it could be due to not enabling Two-Factor Authentication.

I was having no problems uploading builds to the App Store and within the span of 1 hour got this same issue. Once I followed Apple's documentation and enabled Two-Factor Authentication for both my organization's Team Agent as well as my own developer account, I restarted XCode and was able to successfully upload builds again.

immadbananas
  • 309
  • 2
  • 6
0

I had this same error. I tried rebooting etc. and nothing worked. I tried again several hours later and managed to submit successfully. I can only assume the service was down.

Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
0

Please use Application Loader, if all the above fails.

Step 1:- Create a .ipa file for app store distribution.

Step 2:- Login to Application loader with your apple developer account for which you are uploading your app.

Step 3:- Choose .ipa file from application loader, read the instruction asked and follow the steps.

I got the same issue, after spending lots of time and doing each and every thing but no solution work for me, at the last I just upload me .ipa file in Application Loader. And it work.

0

Xcode 10. Aug. 2019

Press the Manage Account then see a reminder said my account is expired. Logging in again fixes this problem.

Shan
  • 107
  • 1
  • 7
0

While developing using XCode, I found many errors only solved with restarting XCode and Macbook. Just restart the Macbook and it will be gone. Anything else except restarting is not worth of time. I have tried many things to solve this error. I tried to log in again and again with AppStore but only restarting MacBook worked for me.

patel dhruval
  • 1,002
  • 10
  • 12
0

If closing Xcode or restarting the Mac didn't help, try deleting Derived Data.

0

Remove all apple accounts close xcode restart mac add apple account it will work

Ucdemir
  • 2,852
  • 2
  • 26
  • 44
0

make sure that project navigator under both pods and runner, and signing & capabilities tab the team is selected.

Em Ikram
  • 161
  • 1
  • 3
0

Deleting DerivedData and restarting XCode solved the issue.

CarlFerr
  • 51
  • 1
  • 4
0

Sign-in Session is Expired,

Please login to developer account again in

Xcode -> Settings -> Accounts

Logic
  • 705
  • 1
  • 9
  • 27
-1

It founds it, but doe's not let you access it!

Recently Apple applied the US sanctions to some countries in a more restricted way and resulted in this issue. Also, you can see this issue if you head to some of Apple's online resources like the developer.apple.com and see this instead:

enter image description here

The page you’re looking for can’t be found.

This error is NOT a 404 error, as you can see in the console! It's a 403 and can be solved by using a good quality VPN

Some VPN's are already detected by major companies like Google and Apple and will not work for this issue

I hope it helps everyone, and I hope Apple discontinue this racist behavior

Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278