iPhone or iPad error 21: security checks and recovery

For iPhone or iPad error 21, security software and the USB/computer connection are checks before a hardware repair decision. Apple includes 21 in its possible-hardware group; the number alone does not identify a battery, port or board to replace. Try again after each documented check.

Error 21: security and connection checks

  1. Update the computer’s device software. Use current macOS, Apple Devices on Windows, or the applicable iTunes version. Quit and reopen iTunes if it was already open.
  2. Check the host connection. Review third-party security software with its vendor and verify a reliable USB cable, computer and network. Retry after each change; record the result.
  3. Choose the appropriate recovery action. If a normal update still fails, use the device-specific recovery buttons below. Update first if untried; Restore reinstalls software and erases data. Continued recovery failure or broken buttons warrants service.

Recovery buttons depend on the device

DeviceWhile connected to the computer
iPhone 8 or later, including SE 2nd/3rd genQuickly press Volume Up, then Volume Down; hold Side until the recovery screen.
iPhone 7/7 PlusHold Side or Top and Volume Down until the recovery screen.
iPhone 6s or earlier, including original SEHold Home and Side or Top until the recovery screen.
iPad without a Home buttonQuickly press the volume button nearest Top, then the farthest; hold Top until recovery.
iPad with a Home buttonHold Home and Top. When it turns off, release Top but continue holding Home until recovery.

Separate a recovery timeout from the next error

If a download takes over 15 minutes and the device leaves recovery, Apple says to finish the download and then re-enter recovery. For a continued failure, keep the new error number and the host software version with the service request.

Hypothetical example: error 21 occurs on the first computer, while a second cable and updated computer complete the update. That result supports retaining the working device rather than ordering a board from the original error number.

Keep the computer, connection and next error together

Identify which operation failed: a normal update, entry into recovery or an erasing restore. Keep the actual number from that attempt. Apple places 21 among errors that may involve hardware, but still asks for computer, security-software, cable and network checks.

A result that changes after a host correction deserves to be recorded rather than assuming the first number proves a particular internal part failed.

Use the device application appropriate to the computer. Apple’s current recovery instructions use Finder on a Mac and Apple Devices on a PC; older host-software instructions can refer to iTunes. Update the applicable host software before repeating the same operation.

If iTunes was already open, Apple’s hardware-group checklist begins by quitting and reopening it. Keep the chosen application and version with the result.

For the USB comparison, use the supplied or an Apple-certified cable and a port on the computer itself. Apple’s connection checks exclude a keyboard’s USB port because it can lack sufficient power for an update or restore. Change the cable or port separately, then retry the same operation.

If using another updated computer completes it, retain that successful result before considering a device repair.

A recovery download and an erasing restore are different decisions

A device can leave its recovery screen while a software download is still in progress. Apple says that when the download takes over fifteen minutes, let it finish and then put the device back into recovery with its correct buttons. A return to the normal screen during that interval is not the same result as a new error displayed by the computer after a completed attempt.

If Update has not been tried, Apple directs trying that before Restore. Read the choice on the computer: Restore reinstalls software and erases the device’s data. Back up accessible information before choosing it and do not describe it as a harmless restart.

When recovery still fails, preserve the current error, device model, available backup and host/cable comparisons for Apple support instead of guessing a battery or board from code 21.

Keep data consequences with the recovery choiceAn error number is not a component diagnosis.Host checks → retry after one changeUpdate untried → try it before erasingRestore → erased device; continued failure → service

Manufacturer instructions for this fault