Skip to content
CoreMacs
XcodeGuide

Xcode 27 Validate App stuck at Preparing: the dwarfdump-classic "bad CPU type" fix

On Apple silicon Macs, Xcode 27 validation and upload can hang at Preparing when xcrun resolves dwarfdump-classic to an old Intel-only Command Line Tools copy and Rosetta is missing. Move that copy aside and select Xcode.

CoreMacs News Desk·Published ·Last verified ·6 min read
A silver Mac mini on a wooden desk beside a plant, a small lamp and part of a laptop.

If Validate App, Distribute App or Transporter sits at "Preparing" forever on an Apple silicon Mac with Xcode 27, check whether xcrun resolves dwarfdump-classic to an old Intel-only copy in /Library/Developer/CommandLineTools. Without Rosetta that binary cannot start, and, according to developer reports, the validation helper waits instead of failing. Move the stale Command Line Tools folder aside and point xcode-select at Xcode 27; installing Rosetta is a short-term alternative.

Apple has not published a root cause. The diagnosis below comes from developers on the Apple Developer Forums, and a DTS engineer replying there asked for a bug report rather than confirming the mechanism.

What the hang looks like

Reports describe Xcode 27.0 (27A266a) on macOS 27.0, on Apple silicon. Archiving, signing and IPA packaging succeed. Then Organizer stops at a progress stage and never times out. The stages developers reported are "Preparing…", "Validating…" with "Analyzing app", and, for uploads:

Preparing to upload [App].ipa

No error appears in the Xcode UI. Transporter 1.4.5 hangs the same way, and running xcrun swinfo against the IPA also hangs. One developer noted that Xcode Cloud uploaded the same project without trouble, which points at the local toolchain rather than the app.

The error only shows up when you run the tool yourself:

% /Library/Developer/CommandLineTools/usr/bin/dwarfdump-classic --help
zsh: bad CPU type in executable

Why it happens

According to the forum reports, the swinfo helper that Xcode and Transporter run during validation asks for dwarfdump-classic. The poster in thread 847303 says Xcode 27 no longer ships that tool, so the lookup falls back to the standalone Command Line Tools at /Library/Developer/CommandLineTools. On affected Macs that folder held an x86_64-only copy, in one case from 2019, carried over by Migration Assistant.

Two documented platform facts explain why this appears now:

  • The Xcode 27 release notes say Xcode 27 only installs and runs on Apple silicon Macs.
  • The macOS 27 release notes say that if Rosetta was previously installed, it is not automatically restored after upgrading to macOS 27.0.

An Intel-only binary that ran through Rosetta before the upgrade now cannot launch at all. In the reports, swinfo does not surface that failure; it simply waits.

How do I confirm this is my problem?

Run these three commands. The expected outputs below are the ones a developer posted in thread 845212.

xcode-select --print-path
# /Applications/Xcode.app/Contents/Developer

xcrun --find dwarfdump-classic
# /Library/Developer/CommandLineTools/usr/bin/dwarfdump-classic

file "$(xcrun --find dwarfdump-classic)"
# Mach-O 64-bit executable x86_64

Note that in that report xcode-select already pointed at Xcode, yet xcrun still found the tool in Command Line Tools. If xcrun --find lands in CommandLineTools and file lists only x86_64, this is your cause. Add --verbose to the xcrun call to see how the lookup is performed.

To check whether Rosetta is present, the original poster looked for libRosettaRuntime in /Library/Apple/usr/libexec/oah/. That check is from the forum, not Apple documentation.

Fix: move the stale Command Line Tools aside and select Xcode

The commands below need an administrator password. Moving the folder does not delete anything, so you can put it back later.

  1. Quit Xcode and Transporter, and cancel any hung validation.
  2. Move the old standalone Command Line Tools out of the way:
    sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools-old
  3. Make Xcode 27 the active developer directory. Adjust the path if your Xcode is not at the standard location:
    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    Per Apple's documentation, --switch requires superuser permissions and affects all users on the Mac. You can also pick the Xcode version in Xcode > Settings > Locations, under Command Line Tools.
  4. Clear the xcrun lookup cache so it re-resolves tools. The xcrun man page (man xcrun) says --kill-cache removes the cache and causes all values to be re-cached:
    xcrun --kill-cache
  5. Reopen Xcode, archive again and run Validate App.

The developer in thread 845212 reported that, after the first two commands, swinfo returned to the shell instead of hanging. A fresh archive then validated with "Your app successfully passed all validation checks."

Alternative: install Rosetta

Installing Rosetta lets the old binary run, and the poster in thread 847303 used it together with the move above. Apple Support gives the Terminal command; the Mac must be online:

softwareupdate --install-rosetta

Treat this as a stopgap. The same Apple Support page says that starting with macOS 28, Rosetta will only be available for certain older games that rely on Intel frameworks. An Intel-only tool on your build path will break again then.

How do I know it worked?

  • xcrun --find dwarfdump-classic no longer returns a path inside /Library/Developer/CommandLineTools. It may return an error if the active Xcode has no such tool.
  • xcrun swinfo returns to the prompt instead of hanging. In thread 845212 it then printed a separate bitcode-build-tool internal error, yet Organizer validation still succeeded.
  • Organizer moves past "Preparing" and either validates or reports a real error.

Variations and edge cases

  • A stale ~/.itmstransporter folder. In thread 845212, one developer with the same hang fixed it by deleting ~/.itmstransporter, which held Transporter files from 2018 and 2019. Rename it rather than delete it if you want a way back.
  • You still need standalone Command Line Tools. After moving the old folder aside, install a current package with xcode-select --install or Software Update, check it with pkgutil --pkg-info=com.apple.pkg.CLTools_Executables, then run xcrun --find dwarfdump-classic and file again to make sure no x86_64-only copy is back on the lookup path.
  • Removing the old copy for good. Apple documents sudo rm -rf /Library/Developer/CommandLineTools. This permanently deletes the folder. To stop Software Update from offering the package again, Apple documents sudo pkgutil --forget com.apple.dt.commandlinetools.
  • Upload still blocked. In thread 847720, developers whose Organizer upload hung shipped through Xcode Cloud or with xcrun iTMSTransporter -m upload from Terminal (the developer who posted that command also passed -assetFile with the IPA path, -u with their Apple ID, -p with an app-specific password and -itc_provider with their provider short name).
  • A different swinfo failure. In thread 847720, the original poster passed on an unverified diagnosis from an AI coding assistant: that swinfo crashed (SIGSEGV, exit code 139) rather than waiting on dwarfdump-classic. If xcrun --find dwarfdump-classic does not point into CommandLineTools, this fix probably does not apply; use the upload workarounds above.
  • Transporter crashes. Thread 847303 also reports Transporter 1.4.5 crashing on macOS 27.0 while drawing its activity queue. That appears to be a separate bug.

How to prevent it on build Macs

  • After migrating a Mac or upgrading macOS, run file on /Library/Developer/CommandLineTools/usr/bin/dwarfdump-classic. If it reports only x86_64, move the whole folder aside as described above. If you need standalone tools afterwards, install a current Command Line Tools release and run the same file check again.
  • Apple advises checking for a new Command Line Tools release after each macOS upgrade, because the installed version may be incompatible with the new macOS.
  • On self-hosted build machines, set the developer directory explicitly with xcode-select --switch or DEVELOPER_DIR, and add the xcrun --find dwarfdump-classic check to your provisioning script.
  • Do not rely on Rosetta for release tooling. It is not restored by the macOS 27 upgrade and is limited in macOS 28.

Sources

Share