← Back to Blog

How to Fix "iPhone Unavailable" or "Security Lockout" with an IPSW Restore

By Ivan ·

Entering an incorrect passcode repeatedly on iOS 15.2 and later triggers an escalating lockout timer, eventually locking the screen with “iPhone Unavailable” or “Security Lockout” (on iPad, “iPad Unavailable”). In older iOS versions, this state displayed “iPhone is Disabled.”

Once the device reaches a permanent lockout state without a timer—or when you cannot remember the passcode—there is no method to unlock the device without erasing its storage. This guide covers both the built-in wireless reset option and the computer-based IPSW restoration method when the wireless option is unavailable.

Before You Begin: Data and Activation Lock

  • Data loss on erase: All data stored exclusively on the device will be wiped when resetting from a lockout. Afterward, you can restore data from a previous iCloud or computer backup (see our backup guide).
  • Activation Lock requirement: Erasing a locked device does not remove Find My / Activation Lock. Once the reset finishes, you must enter the Apple Account email and password previously signed in to that device before you can use it again.

Option 1: Reset Directly on the Device (No Computer)

If the locked device is running iOS 15.2 or later and meets specific conditions, you can erase it directly from the lock screen without a computer:

Requirements:

  • An active Wi-Fi or cellular data connection on the locked device.
  • Find My iPhone / iPad must already be turned on.
  • You must know the Apple Account password linked to the device.

Steps:

  1. Continue entering passcodes until the “Forgot Passcode?” (iOS 17 and later) or “Erase iPhone” (iOS 15.2–16) button appears in the bottom corner of the screen.
  2. Tap Forgot Passcode? (or Erase iPhone).
  3. Tap Start iPhone Reset (or Erase iPhone again) to confirm.
  4. Enter your Apple Account password to sign out of your account on the device.
  5. Tap Erase iPhone to permanently delete all data and settings.
  6. When the device restarts, follow the setup assistant to restore a backup or set it up as new.

If the Forgot Passcode? option does not appear—which commonly happens when the device is in Airplane Mode, has no cellular signal, or cannot reach Wi-Fi—proceed to Option 2.

Option 2: Reset via Computer and IPSW (Recovery Mode)

When an on-device reset is unavailable, you must place the locked device into Recovery Mode and flash a fresh firmware package from a Mac or Windows PC.

Step 1: Prepare the IPSW File and Computer

  1. Check the exact model of your locked device. If you cannot open Settings, look for the “A-number” inside the SIM tray slot, inside the USB-C port (on eSIM-only models), or on the back casing of an iPad. See our model identification guide or use dotIPSW’s Model Number Lookup.
  2. Download the currently signed IPSW file for your exact device from our iPhone firmware pages or iPad firmware pages. Confirm the version has active green signing status on our signing status page.
  3. Verify the downloaded file’s SHA-256 hash using the dotIPSW IPSW Verifier to avoid corrupted downloads.
  4. Open Finder (macOS) or the Apple Devices app (Windows 10/11). If you are using Windows, refer to our Apple Devices app restoration guide.

(Alternatively, you can let Finder or Apple Devices download the latest signed firmware automatically during Step 3, though downloading and verifying the IPSW manually gives you direct control over the file and allows offline retries if an interruption occurs.)

Step 2: Enter Recovery Mode

A locked device will reject a standard desktop connection with “Trust This Computer” prompts. Putting it in Recovery Mode bypasses the iOS lock screen so the computer can communicate with the bootloader.

Important: Connect the USB cable to the computer before or during the button sequence depending on your model:

iPhone 8, iPhone SE (2nd/3rd gen), and all Face ID models:

  1. Connect the iPhone to your computer using a USB cable.
  2. Press and quickly release Volume Up.
  3. Press and quickly release Volume Down.
  4. Press and hold the Side button continuously. Do not release when the Apple logo appears; keep holding until the Recovery Mode screen (cable pointing to a computer) appears.

iPhone 7 / 7 Plus:

  1. Connect the iPhone to your computer.
  2. Press and hold both the Side button and Volume Down together until the Recovery Mode screen appears.

iPads without a Home button:

  1. Connect the iPad to your computer.
  2. Press and quickly release the volume button closest to the top button.
  3. Press and quickly release the other volume button.
  4. Press and hold the Top button until the Recovery Mode screen appears.

(For older models with a Home button, check our iPhone Recovery/DFU guide or iPad Recovery guide.)

Step 3: Restore the Device

Once the computer detects the device in Recovery Mode:

  1. Finder or Apple Devices displays a dialog stating there is a problem with the device, offering Update or Restore.
  2. Choose Restore. Selecting Update will not clear a passcode lockout.
  3. To use your manually downloaded IPSW file:
    • macOS (Finder): Hold Option (⌥) and click Restore.
    • Windows (Apple Devices): Hold Shift and click Restore.
  4. Select the verified .ipsw file and confirm the erase and restore action.
  5. Wait for the installation to finish. If the download takes longer than 15 minutes and the device exits Recovery Mode automatically, repeat Step 2 to re-enter Recovery Mode.

After the Restore Completes

  1. The device boots to the “Hello” welcome screen without a passcode.
  2. During setup, you will reach the iPhone Locked to Owner (Activation Lock) screen. Sign in with the Apple Account credentials originally tied to the device.
  3. Choose whether to restore a previous iCloud or computer backup (made before you forgot the passcode) or set up as a new device.

If the restoration halts midway with an interruption code such as Error 9 or Error 4013, verify your USB cable connection or consult our common IPSW errors guide.