com.apple.buildinfo.preflight.error error 21 on Mac: how to fix it

The com.apple.buildinfo.preflight.error error 21 message means macOS Recovery could not finish preparing the macOS download, so fix it by giving Recovery a plain wired or home Wi-Fi connection, trying another Recovery mode, repairing the startup disk, and then installing from a USB installer if Recovery still fails.

This guide covers what the code points to, each fix in order for Intel and Apple silicon Macs, how to tell the reinstall finished, and when the Mac needs firmware revival or Apple service.

com.apple.buildinfo.preflight.error error 21 on Mac: how to fix it
The Recovery utilities window lists Reinstall macOS and Disk Utility, the two options this fix keeps returning to. (Image: Apple)

How to fix com.apple.buildinfo.preflight.error error 21 in macOS Recovery

Try the reinstall again after each step. Apple says installation errors have varied causes and are sometimes only temporary.

  1. Connect the Mac to a home network with an Ethernet cable, or to Wi-Fi that needs no sign-in page.
  2. Shut down the Mac, start it from macOS Recovery again, and choose the option to reinstall macOS.
  3. On an Intel-based Mac, try each key combination in turn: Command-R, then Option-Command-R, then Shift-Option-Command-R.
  4. If the error returns, open Disk Utility from the Recovery window and run First Aid on every volume, container and device.
  5. Quit Disk Utility and choose Reinstall macOS again.
  6. If Recovery still fails, install from a bootable USB installer made on another Mac.
  7. On a Mac with Apple silicon or the T2 chip, revive the firmware from a second Mac as the last step before service.

What does com.apple.buildinfo.preflight.error error 21 mean?

Apple does not publish a meaning for this code. The message appears when a macOS reinstall from Recovery stops before the installer starts copying files, which is why Apple's general guidance for errors while downloading, preparing or installing macOS is the fix path. The same number shows up in Apple's iPhone and iPad restore list, where it belongs to the possible hardware group.

Where you see it What Apple's guidance points to First thing to try
macOS Recovery, while reinstalling macOS (error 21) Network, startup disk or firmware problem during installation Wired or open Wi-Fi network, then another Recovery mode
macOS Recovery with error 10 instead of 21 Same general installation guidance; no separate Mac entry The same steps as error 21
Finder or the Apple Devices app restoring an iPhone or iPad (error 21) Possible hardware issue in Apple's iOS restore error list Reliable cable, computer and network, then restore again
Finder or the Apple Devices app restoring an iPhone or iPad (error 10) The device's software is too new for the Mac or PC Update macOS, iTunes or the Apple Devices app

macOS Recovery internet connection requirements for reinstalling macOS

Recovery downloads macOS and Mac-specific firmware information from Apple, so the network matters more than anything else. Apple lists the connection types that block it.

  1. Use a broadband connection that hands out addresses by DHCP, over Wi-Fi or Ethernet.
  2. Avoid hotel, café and campus networks that show a sign-in page before you can browse.
  3. Avoid 802.1X networks, which are common in offices and schools.
  4. If your internet uses PPPoE, connect through a router that handles PPPoE instead of plugging the Mac into the modem.
  5. Plug in an Ethernet cable where possible; Apple suggests switching from Wi-Fi to Ethernet when Recovery has network trouble.
  6. If nothing changes, try a different network or try again later in case the problem is on Apple's side.

Start up from macOS Recovery on a Mac with Apple silicon or an Intel-based Mac

Starting Recovery fresh clears whatever stalled the previous attempt. The steps differ by processor; if you are not sure which Mac you have, Apple says it is safe to try both.

  1. Shut down the Mac. If it will not shut down, hold the power button for up to 10 seconds.
  2. Apple silicon: press and hold the power button until Loading startup options appears, then click Options and Continue.
  3. Intel: press the power button, then immediately hold Command (⌘) and R until an Apple logo or spinning globe appears.
  4. Choose a Wi-Fi network if asked, or attach a network cable.
  5. Select your startup disk, such as Macintosh HD, and click Next.
  6. Select a user you know the password for, click Next, and enter that password.
  7. Choose the option to reinstall macOS, click Continue, and follow the onscreen instructions.

Keep the Mac awake with the lid open during installation. It can restart, show a progress bar several times and leave the screen blank for minutes.

Option-Command-R and Shift-Option-Command-R Internet Recovery on Intel Mac

On an Intel-based Mac, each key combination loads Recovery from a different place and offers a different macOS. If one fails with error 21, the next may download a different installer.

Key combination Where Recovery loads from macOS it offers
Command-R The built-in Recovery system The current version of the most recently installed macOS
Option-Command-R Internet Recovery Possibly the latest macOS compatible with the Mac
Shift-Option-Command-R Internet Recovery Possibly the macOS that came with the Mac, or the closest version still available
Power button held (Apple silicon) Startup options, then Recovery The current version of the most recently installed macOS

A spinning globe with an exclamation point, or codes such as -2001F, -2002F or -2003F, mean Internet Recovery itself could not connect, which is a network problem rather than error 21.

Repair Macintosh HD with Disk Utility First Aid in Recovery

Apple lists repairing the startup disk as a fix for installation errors. If you have just erased the disk, skip this.

  1. In the Recovery utilities window, select Disk Utility and click Continue.
  2. Choose View > Show All Devices.
  3. Select the last volume on the startup disk, usually Macintosh HD – Data.
  4. Click First Aid, then Run. Enter your administrator password if asked to unlock the disk.
  5. Select the next item up the sidebar and run First Aid again.
  6. Work up through each volume, volume group and container, and finish with the device itself.
  7. Quit Disk Utility and choose Reinstall macOS.

If First Aid finds errors it cannot repair, the disk needs erasing before macOS will install.

Disk Utility First Aid in Recovery with View set to Show All Devices
Choose View > Show All Devices first so every volume, container and the disk itself appear for First Aid. (Image: Apple)

Reinstall macOS Monterey from a bootable USB installer

A bootable installer skips the Recovery download that throws error 21. Make it on a working Mac that is compatible with the macOS you need, using a 32GB USB flash drive. Apple lists the macOS Monterey full installer in the App Store for compatible Macs.

  1. On the working Mac, download the full installer and make sure Install macOS Monterey is in the Applications folder.
  2. Connect the USB flash drive and rename it MyVolume. It will be erased.
  3. Open Terminal and enter sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume.
  4. Type your administrator password, press Return, then type Y to confirm erasing the drive.
  5. Wait for Terminal to say the install media is now available, then eject the drive.
  6. On an Apple silicon Mac, hold the power button, select the installer and click Continue. On an Intel Mac, hold Option (Alt) at startup and select the installer.
  7. Choose Install macOS and follow the onscreen instructions.

For another macOS, download its full installer and swap the installer name in the command, such as Install macOS Sonoma. The Mac still needs internet access so the installer can get firmware information for that model.

Erase Mac with Disk Utility and reinstall macOS

Apple's last software fix for a persistent installation error is to erase the Mac. This permanently deletes its files, so back up first if the Mac still starts. If the Mac still starts normally, you can factory reset the Mac from inside macOS instead.

  1. In Recovery, select Disk Utility and click Continue.
  2. Select Macintosh HD in the Internal section of the sidebar.
  3. Click Erase, set the name to Macintosh HD and the format to APFS (an Intel Mac may recommend Mac OS Extended (Journaled) instead).
  4. Click Erase Volume Group if it appears; otherwise click Erase.
  5. Enter your Apple Account details if asked. On Apple silicon, click Erase Mac to confirm.
  6. On Apple silicon, choose a language, join a network so the Mac can activate, then click Exit to Recovery Utilities.
  7. Select Reinstall macOS, click Continue and follow the onscreen instructions.

After an erase, an Apple silicon Mac may install the macOS you had before your last upgrade, so update macOS to the latest version once setup finishes. Restore your files from Time Machine once the reinstall finishes.

Erase Mac with Disk Utility: Erase APFS volume group Macintosh HD dialog
Keep the name Macintosh HD and the APFS format, then click Erase; this permanently deletes the data on the volumes. (Image: Apple)

Revive or restore Mac firmware in DFU mode for error 21

Apple says a Mac with Apple silicon or the T2 Security Chip can rarely need its firmware revived to clear an installation error that nothing else fixes. You need a second Mac with macOS 14 or later, about 60GB free, and a USB-C to USB-C cable that carries data and charging (not a Thunderbolt 3 cable).

  1. Connect both Macs to power, and connect the cable from the affected Mac's DFU port to any USB-C port on the host Mac.
  2. Put the affected Mac in DFU mode. On a laptop, turn it off, press the power button, then hold left Control, left Option, right Shift and the power button.
  3. On an Apple silicon laptop, release the three keys after about 10 seconds and keep holding power until the host Mac shows a DFU window. On a T2 laptop, hold all four for about 3 seconds.
  4. On a desktop Mac, unplug it, hold the power button while plugging it back in, and keep holding for up to 10 seconds.
  5. Click Allow on the host Mac if it asks to let the accessory connect.
  6. In the Finder DFU window, click Revive Mac, then Continue. Reviving does not erase the Mac.
  7. If reviving fails, click Restore Mac, then Restore and Update. This erases the Mac and installs macOS.

If no DFU window appears, open Finder > Settings > Sidebar and turn on CDs, DVDs, and iOS Devices, then retry with careful key timing and a different cable.

Revive Mac firmware in DFU mode from the Finder window on a host Mac
Click Revive Mac first because it keeps your data; Restore Mac erases the Mac and installs macOS. (Image: Apple)

How to tell if macOS reinstalled from Recovery

  1. Wait through the restarts and progress bars; a blank screen for several minutes is normal.
  2. Look for the setup assistant after an erase, or the login window after a reinstall that kept your data.
  3. Sign in and check that your apps and files are where you left them, if you did not erase.
  4. Choose Apple menu > About This Mac to see which macOS version is now installed.
  5. Open System Settings > General > Software Update to install any later updates for that version.

macOS Recovery not working on Mac

Command-R does nothing and the Mac starts normally

The Mac did not register the keys in time, often with a wireless or PC keyboard.

  1. Use the built-in keyboard on a Mac laptop.
  2. On an external keyboard, wait a few seconds after power-on before holding the keys.
  3. Plug in a wireless keyboard, or use a wired keyboard made for Mac.
  4. If the Mac is set to start up from Windows with Boot Camp, set it to start up from macOS first.

Spinning globe with an exclamation point or error -2003F

Internet Recovery could not reach Apple over the current network.

  1. Switch from Wi-Fi to Ethernet.
  2. Try Command-R, Option-Command-R and Shift-Option-Command-R in turn.
  3. Try a different network, or try again later.

The macOS installer does not see the disk

The startup disk is damaged or unformatted.

  1. Quit the installer and open Disk Utility from Recovery.
  2. Erase the startup disk as Macintosh HD in APFS format.
  3. Choose Reinstall macOS again.

Installer asks for Macintosh HD or Macintosh HD – Data

Both volumes appear because the startup disk uses a volume group.

  1. Choose Macintosh HD.
  2. Enter your Mac login password if the installer asks to unlock the disk.
macOS Recovery not working: spinning globe with exclamation point on startup
This globe alert means Internet Recovery could not reach Apple; switch from Wi-Fi to Ethernet or try another network. (Image: Apple)

When com.apple.buildinfo.preflight.error needs Apple service

Contact Apple Support when error 21 survives a wired network, every Recovery mode, a USB installer and a firmware revive, or when Disk Utility cannot see or erase the startup disk. Apple says a disk that Disk Utility cannot see or erase may need service, and that a persistent installation issue is the point to contact Apple Support.

Before booking a repair on an Intel-based Mac, hold D at startup to run Apple Diagnostics, or Option-D to run it over the internet, and note any reference code it reports.

com.apple.buildinfo.preflight.error FAQ

What is com.apple.buildinfo.preflight.error error 21?

It is an error macOS Recovery shows when a reinstall fails before installation begins. Apple does not document the code, so treat it as a general macOS installation error: check the network, try another Recovery mode, repair the disk, then use a USB installer.

How do I fix com.apple.buildinfo.preflight.error error 10?

Use the same steps as error 21, since Apple has no separate Mac entry for it. Connect by Ethernet, restart into Recovery, run First Aid and reinstall. If it appears while restoring an iPhone, error 10 means the iPhone software is newer than the computer supports.

Does reinstalling macOS from Recovery delete my files?

No. Apple says reinstalling macOS does not remove your apps or personal data, though a backup is still wise. Only erasing the disk in Disk Utility, or restoring firmware in DFU mode, deletes everything on the Mac.

Why can't macOS Monterey download from Recovery?

Recovery needs a broadband connection using DHCP over Wi-Fi or Ethernet, and sign-in pages, 802.1X and direct PPPoE connections can block it. If the network is fine, create a Monterey bootable installer on another Mac and install from that instead.

Which macOS does Recovery install on an Intel Mac?

Command-R installs the current version of the most recently installed macOS. Option-Command-R may offer the latest compatible macOS, and Shift-Option-Command-R may offer the macOS that came with the Mac or the closest version still available.

Can I fix error 21 without a second Mac?

Often, yes. Network changes, the three Recovery key combinations, Disk Utility First Aid and erasing the disk all work on the affected Mac alone. A second Mac is only needed to make a bootable installer or to revive firmware in DFU mode.

Does reviving Mac firmware erase the Mac?

No. Reviving in DFU mode does not erase the Mac and can be faster than restoring, which is why Apple says to try it first. Restoring in DFU mode erases the Mac and returns it to factory settings.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *