'Xcode Error Analyzing App Version when validating app in archive organizer [duplicate]

I am running Xcode Version 13.0 (13A233)

My build process that is normally run through fastlane stopped working recently ( was working fine up until a few days ago ).

I've been trying to get the build process working again through Xcode before tackling any issues that might still persist with Fastlane.

I archive my app through Xcode and that completes successfully with no issues. Then in the archives section under the organizer. I try clicking 'Validate App' and get the following error:

Error Analyzing App Version

Build number request failed with error: BuildsService: ResponseErrors (1): Error status: 403, code: FORBIDDEN_ERROR, title: 'This request is forbidden for security reasons', detail: 'The API key in use does not allow this request', id: a147f6b6-dcd4-42a6-9cfc-b7d1fa500a85

Xcode Error

I have not configured Xcode to use the App Store Connect API at all, nor could I find anywhere to do so. Normally it just ran through my developer account.

I have tried using the App Store Connect API through Fastlane to see if that would fix the issue, however it stays the same.

What might be causing this and how I can go about fixing it?



Solution 1:[1]

After much trial and error, I fixed this issue. For anyone else who faces this same issue, this is what worked for me.

I have both a personal developer account and a work developer account. Both are configured in Xcode and I was trying to build an app through the work developer account.

I think Xcode was trying to use my personal account for some reason. Even though the profiles were configured with work certificates, accounts etc. So I removed my personal account from Xcode and suddenly this issue went away and things started working as normal.

Solution 2:[2]

You can view the error log?and you may find account conflicts. Operation process?Xcode->Preferences->Accounts,remove other account and try again.

Solution 3:[3]

I encountered the same problem, but deleting the second Xcode account didn't solve my problem. I restarted Xcode and switched to another network. After trying many times, I finally released it successfully.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pkamb
Solution 2 coobus
Solution 3 RateRebriduo