Fix: Application Loader Stuck at Authenticating with the iTunes Store in Xcode

Fix: Application Loader Stuck at Authenticating with the iTunes Store in Xcode

Written by

in

Quick answer: Application Loader hangs at authentication due to a stale iTMSTransporter cache or unaccepted Apple Developer terms. Fix it by moving the ~/.itmstransporter folder and running the iTMSTransporter binary to self-update, or by opening Application Loader from Xcode’s Open Developer Tool menu to accept new terms.

Why this happens

Application Loader relies on the iTMSTransporter command-line tool to communicate with App Store Connect. When Apple updates the Transporter protocol or requires developers to accept new legal agreements, the cached copy of iTMSTransporter in ~/.itmstransporter becomes outdated. The tool then hangs silently at “Authenticating with the iTunes store” because it cannot complete the handshake with Apple’s servers. A second cause is unaccepted terms: Apple occasionally pushes updated service agreements that must be accepted interactively before any upload method works.

How to fix it

1. Reset the iTMSTransporter cache (most reliable)

This forces iTMSTransporter to download the latest version and rebuild its internal cache.

  1. Quit Application Loader and Xcode completely.
  2. Open Terminal.
  3. Move the existing transporter directory to a backup location:
    bash
    cd ~
    mv .itmstransporter/ .old_itmstransporter/
  4. Run the Transporter binary bundled with Xcode to trigger a self-update:
    bash
    "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms/bin/iTMSTransporter"

    If you are on Xcode 11 or later, Application Loader is no longer inside Xcode.app. Use the Transporter app instead:
    bash
    "/Applications/Transporter.app/Contents/itms/bin/iTMSTransporter"
  5. Wait for the command to finish downloading updates (it prints progress to stdout).
  6. Reopen Xcode and attempt the upload again via Product → Archive → Distribute App.

2. Accept updated Apple Developer terms in Application Loader

If the cache reset does not help, the blocker is often a pending legal agreement.

  1. In Xcode, choose Xcode → Open Developer Tool → Application Loader.
  2. Application Loader launches and presents a dialog asking you to agree to the latest Apple Developer Program License Agreement or App Store Connect Terms.
  3. Accept the terms and sign in with your Apple ID when prompted.
  4. Close Application Loader and retry the upload from Xcode’s Organizer or the Transporter app.

Note: Application Loader was removed in Xcode 11 (2019). On modern Xcode versions, use the Transporter app (available from the Mac App Store) or the built-in Distribute App flow in Xcode’s Organizer. The same cache-reset steps apply to Transporter’s iTMSTransporter binary.

How to prevent it

  • Keep Xcode and the Transporter app updated via the Mac App Store or Apple Developer downloads.
  • Periodically open Transporter (or Application Loader on older macOS) to accept any new terms before they block an automated CI upload.
  • In CI pipelines, run iTMSTransporter -m diagnostic as a pre-flight check; it exits non-zero if terms are pending.
  • Avoid stale ~/.itmstransporter folders by cleaning them during your build agent’s teardown step.

FAQ

Why does Application Loader give no error message when it hangs?

The authentication handshake occurs over a proprietary TLS channel. When the client version is too old or terms are unaccepted, the server simply keeps the connection open without sending a readable error, so the UI spinner never stops.

Can I fix this without opening a GUI tool on a headless CI Mac?

Yes. Run /Applications/Transporter.app/Contents/itms/bin/iTMSTransporter -m diagnostic -u "$APPLE_ID" -p "$APP_PASSWORD" in a script. It will output a clear error if terms need acceptance, and you can then accept them once via a remote VNC session or by logging into App Store Connect on the web.

Is Application Loader still supported on macOS Ventura or Sonoma?

No. Application Loader was discontinued with Xcode 11. Use the Transporter app (macOS 10.15+) or Xcode’s Distribute App button. The underlying iTMSTransporter binary is identical, so the cache-reset fix remains valid.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 3.0; this article is shared under the same license.