'What is an error analyzing app version when distributing from Xcode?

I want to distribute app, but I received the error. I don't know the cause.

I use Xcode Version 13.0 (13A233)

An error was Encountered:

 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: 65cc1b85-e0d4-4f86-8bab-e72d7149c9cc)

enter image description here



Solution 1:[1]

I fixed this issue by removing every Apple ID in Xcode except the one that has the developer role in App Store Connect for the app I was trying to validate / distribute. I assume Xcode was trying to use the wrong account at some point in the process.

Solution 2:[2]

Might Temporary Apple outage. See: https://developer.apple.com/forums/thread/705599

Here's a workaround:

  1. Organizer -> Distribute App -> App Store Connect -> Export -> NOW DISABLE WIFI / INTERNET (else will fail) -> Exported .ipa

  2. Now use Transporter App -> Login to same account -> Add .ipa -> Upload works !

Transporter can be downloaded here: https://apps.apple.com/app/transporter/id1450874784

Solution 3:[3]

I was able to resolve it by attempting to submit an older uploaded version and then canceling as soon as that step was completed. Then I tried to upload the new version again, surprisingly it passed that check ?. If the process fails then try to restart the mac.

Solution 4:[4]

Today I've faced the same problem. I tried to remove all previous versions. Then after a while I archived new version and this step successfully passed. It seems that was a problem on Apple side. Problem at apple dev forum

Don't try to remove certificates and etc. It would bring more problems.

Solution 5:[5]

I got "Error Analyzing App Version" without any additional details. I just deleted the archive and create it again and it worked.

Solution 6:[6]

I am also facing the same issue from last few hours, it seemed like this issue is arising form Apple side, so doing any changes with certificates or bundle id etc may make it worst to get resolved, thought to wait if Apple respond on this thread

Solved it through Changing the app version from 1.0.0 to 1.0 on Xcode. still this is not guaranteed solution cause its not working on the other Mac.

Solution 7:[7]

Just go to xcode preferences->accounts->Download manual profiles and try uploading again it works for me.

Solution 8:[8]

I had the same message without any description error message like below. I was trying to upload the build to Testflight and encountered this issue.

enter image description here

My solution is only to do with the versioning of the XCode. As I was using new Version number with a random Build number. For example Version I set as 1.2.0 and Build 17, even though I haven't uploaded Build 1 for Version 1.2.0.

After setting up Version 1.2 and Build 1, everything worked.

Solution 9:[9]

Another solution is to recreate the App Store distribution certificate and then it will work.

Solution 10:[10]

Someone posted the following workaround on Apple's Developer Forums:

WORKING BYPASS: While Apple's Hardcore Software engineers drink coffee and figure this bug out! Organizer -> Distribute App -> App Store Connect -> Export -> NOW DISABLE WIFI / INTERNET (else will fail) -> Exported .ipa Now use Transporter App -> Login to same account -> Add .ipa -> Upload works ! Transporter Can be downloaded from AppStore

I managed to upload my app to TestFlight this way.

See https://developer.apple.com/forums/thread/705599?answerId=712953022#712953022

Solution 11:[11]

In Flutter, I solved it by changing the $(MARKETING_VERSION) to $(FLUTTER_BUILD_NAME) for CFBundleShortVersionString key in the Info.plist file

<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>

Solution 12:[12]

I was able to fix this by adding a key to Info.plist: Bundle version string (short), set to $(MARKETING_VERSION).