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

Viewed 19788

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

18 Answers

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.

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.

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.

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

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.

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

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

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.

I changed my Apple id password and got this error. I checked Xcode -> Preference -> Accounts and noticed that session has expired. I re-logged in and got the same error again. And I just restarted my Mac and it worked.

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

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>

I just had this and fixed it by signing out of Apple in XCode and then signing back in.

XCode > Preferences > Accounts > Minus (-) button at the bottom left, then plus (+) button and signed back in. Took 15secs once I tried it.

I encounter this issue suddently. I had uploaded a binary with build 0 yesterday. Then try to upload a binary with build 2 and meet 'Error Analyzing App Version'.

Instead of upload directly, I export the binary and upload it with 'Transporter' app and everything works. So strange.

In my case my apple certificate in my keychain was expired so after creating new certificate and deleting previous certificate it worked for me.

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

Don't need to do anything special. As strange as it sounds, the error does not occur if you upload during the first few minutes after the top of each hour.

i just give the version number a bump, from .42 to .43,

then it all fine. still not sure the root cause of the problem.

Related