XCode 5 hangs with a timeout error when validating/uploading a "ready to be uploaded" app

12,988

Solution 1

Well, apparently: "Problem solved".

After 2 boring days trying to upload my app (via Xcode 5, and via Application Loader), I've discovered that Apple upload servers seem to be overloaded (unless a better explanation arises).

I'm in Europe, and from 9 to 14 h my app was ALWAYS rejected. But once I tried it after 16h, the upload and validation processes worked like a charm (both with Xcode 5 and with Application Loader).

Why this? No idea, but I didn't change anything in my upload process, so it's sad, but the solution is: "Have patience, and wait to upload your app on a time slot where Apple upload servers are not overloaded". The sad part is: No one knows WHEN is that time :)

Solution 2

I solved it by switching Internet provider.

I simply connected my laptop to my iPhone via Personal Hotspot and used LTE network to upload the app.

It worked for me twice.

Solution 3

for Xcode 13 and Mac OS Big Sure

  1. Install the "Transporter" app from the MacOS app store.
  2. From Xcode's organizer, select your archive and press "Distribute App"
  3. Instead of "Upload", select "Export" and proceed as usual.
  4. Drop the exported .ipa into the transporter and press "Deliver".

Solution 4

Faced the error many times, not sure why.

Try this

  1. Export the ipa after the archive

enter image description here

  1. Add and upload in Transporter

I get 100% success in uploading and feel a little quicker than Xcode's upload.

Share:
12,988
Isaac
Author by

Isaac

Currently based in BCN, I've been developing using MANY technologies for the last 15-20 years. Currently in love with iOS developing, not ignoring all the additional satellite technologies that grow around it. OTOH, Java (whatever flavour) has never really been my cup of tea. "Sad" about it :( Human languages learning enthusiast. I also love teaching random stuff to people.

Updated on June 03, 2022

Comments

  • Isaac
    Isaac almost 2 years

    I've been developing and uploading apps for some months. Whenever they needed being uploaded to the app store, I could do it without problem, but now, I'm stuck with one that doesn't want to be validated/uploaded. XCode says "the request timed out" after MANY minutes with a spinwheel on screen.

    The differences between my old updates to the app store and the one I'm trying right now are:

    -Xcode 4.X before, Xcode 5 now.

    -I had to recreate the app store certificate/provisioning profiles, because they just expired.

    -I inherited this project from other coworker (not here anymore) and maybe my "developer profile" is somewhat conflicting with some certificates, etc... (Still many dark areas for me).

    I've kind of tried "everything". Erasing provisioning/profiles, closing Xcode, resetting, cleaning my project. But no luck. My current Xcode 5 is able to compile my app perfectly, I'm even able to select the distribute option before uploading (the app is ready to be uploaded onto itunes connect), I even login with my client credentials onto itunes connect, I can even select the correct provisioning profile (app store profile, not a developer one), but no luck:

    If I choose to upload or validate, Xcode just complains with some kind of "dull" timeout error.

    Any hints? Any way to debug what happens behind the curtains?

    Greetings, I'm at a loss.

    EDIT: Apparently, the timeout failing event appears in the validation process. If I try to upload, the status log says "Failed Validation". If I try to validate, obviously there's also a "Failed validation" error. Where can I find some log to see what part of the validating process is failing?

  • Joseph Humfrey
    Joseph Humfrey over 10 years
    Just been trying continually between 4pm and 5.30pm, and now at 11.30pm (GMT) and still no luck. Not very happy!
  • Ned
    Ned over 10 years
    It's happening for me too, so I think there must be some server issues right now.
  • Patrick
    Patrick over 10 years
    Same here, problems uploading my app for the past 18 hours
  • swebal
    swebal about 10 years
    Occurs even if window is visible all the time.
  • JimP
    JimP about 10 years
    I retract my observation... now the same as occurred to me today trying to upload three apps. Only restarting Xcode solved the issue for each upload. Sorry for the misleading information.
  • Henrik Erlandsson
    Henrik Erlandsson almost 10 years
    Global Corporation quality servers, huh.
  • Nick N
    Nick N almost 10 years
    Just worked for me. I tried two wifi access points and restarted machine and Xcode. No luck. Then switched to hotspot using ATT and Samsung Android and uploaded on the first try.
  • Mike Garcia
    Mike Garcia almost 10 years
    Same thing here. Tried connecting through a VPN after tearing off my hair for an entire day and voila. Everything working smoothly... Thanks for the tip! And thanks one more time for making our lives so miserable, Apple.
  • Patrik Vaberer
    Patrik Vaberer about 9 years
    I can't believe. I made a Hotspot via my iPhone and it worked! Thanks
  • Brian White
    Brian White almost 9 years
    I didn't believe this until I witnessed it with my own eyes. Two days of restarts (XCode, Mac, routers, etc.) and then both Validate and Submit succeeded first time after connecting Bluetooth through my Nexus 5... which uses the same provider as my home cable/internet. I really don't get why this made a difference but it did!
  • Akku
    Akku almost 9 years
    Is that an issue of net neutrality gone wrong then?
  • Michael Eilers Smith
    Michael Eilers Smith over 2 years
    Thanks for sharing man. You just saved me a lot of time.
  • Lorraine R.
    Lorraine R. over 2 years
    This is a great alternative way to upload app to the app store, but in my case still required changing the internet connection (switched to my phone's hotspot and tried several times).