Skip to content
fone.tips
iPhone & iPad 9 min read

Unlock iPhone to Use Accessories: Fix USB Restricted Mode

Quick answer

Unlock your iPhone with Face ID, Touch ID, or your passcode, then reconnect the accessory. If the message keeps appearing, go to Settings > Face ID & Passcode > USB Accessories and toggle it on to allow accessories while locked.

#iPhone & iPad

Your iPhone says “Unlock iPhone to Use Accessories” when you plug in a USB cable or connect to a computer. It’s not a bug. It’s a security feature called USB Restricted Mode, and it’s been on every iPhone since iOS 11.4.1.

The fix takes about 30 seconds. We tested it on both an iPhone 14 Pro (iOS 18.3) and iPhone 15 (iOS 18.2).

  • Simply unlocking your iPhone before connecting the accessory resolves this message in about 90% of cases without changing any settings.
  • USB Restricted Mode blocks all data transfer after your iPhone has been locked for more than one hour, while charging still works normally.
  • Go to Settings, then Face ID and Passcode, and toggle USB Accessories on if you want accessories to connect without unlocking first.
  • Apple patched a serious USB Restricted Mode bypass vulnerability (CVE-2025-24200) in iOS 18.3.1, so updating immediately is critical.
  • A dirty or debris-filled Lightning or USB-C port frequently triggers persistent unlock prompts even with known-good cables.

#What Is USB Restricted Mode?

USB Restricted Mode blocks data transfer through your Lightning or USB-C port when your iPhone has been locked for more than one hour. Charging still works. No data gets through.

According to Apple’s support page, if you don’t unlock your device or connect an accessory within the past hour, your iPhone won’t communicate with the accessory or computer. Previously connected accessories stay authorized for up to 30 days. Apple built this to block forensic hacking tools like GrayKey and Cellebrite that crack iPhone passcodes through USB connections. Certo Software reports that these tools exploited USB data on locked devices, prompting the one-hour lockout.

This matters more now than ever. In February 2025, Apple patched CVE-2025-24200, a vulnerability that let attackers physically bypass USB Restricted Mode. If you’re running anything older than iOS 18.3.1, update immediately.

#How Do You Fix the “Unlock iPhone to Use Accessories” Message?

Start here. This is the method that works for most people.

#Just Unlock Your iPhone

Seriously, that’s it for 90% of cases. Disconnect the accessory, unlock your iPhone using Face ID, Touch ID, or your passcode, then plug the accessory back in. The message disappears and your device connects normally.

If your Face ID isn’t working, use your passcode instead.

#Allow USB Accessories When Locked

If you’re tired of unlocking every time you connect to your car’s CarPlay or a desk charger with data, you can disable the restriction:

Open Settings, tap Face ID & Passcode (or Touch ID & Passcode), enter your passcode, scroll to Allow Access When Locked, and toggle USB Accessories on.

On iOS 18, there’s a separate option too: Settings > Privacy & Security > Security > Wired Accessories.

We tested toggling this setting on our iPhone 15 running iOS 18.2. After enabling it, our MacBook recognized the phone immediately through USB-C without requiring an unlock first. The whole process took under a minute.

One warning: Turning this on means any USB device can communicate with your iPhone while it’s locked. If you’re concerned about physical security, leave it off and just unlock before connecting.

#Toggle the Setting Off and On

Sometimes the USB Accessories toggle gets stuck. Here’s the reset trick:

Go to Settings > Face ID & Passcode, turn USB Accessories off, restart your iPhone (hold Side button + Volume Down, slide to power off), then go back and turn USB Accessories on again. In our testing on an iPhone 14 Pro, this reset fixed a persistent “Unlock to Use Accessories” prompt that kept coming back even though we’d already enabled the setting.

#Still Getting the Message After Unlocking

If you’ve unlocked your iPhone and reconnected the accessory but the message won’t stop, try these hardware and software fixes.

#Check Your Cable and Port

A damaged cable or debris in your Lightning or USB-C port can trigger the message. The phone detects a partial connection but can’t establish a proper data link.

Try a different cable first. If that doesn’t help, use a wooden toothpick or compressed air to clean out the port. Lint builds up over time, especially in Lightning ports. If your iPhone won’t charge but says it’s charging, a dirty port is often the culprit.

#Force Restart Your iPhone

A force restart clears temporary glitches that can cause persistent USB connection errors.

iPhone 8 and later (including USB-C models): Press and release Volume Up, then Volume Down, then hold the Side button until the Apple logo shows up. iPhone 7: Hold Volume Down + Side button together.

If your iPhone gets stuck on the Apple logo during restart, fix that first.

#Update iOS

Apple regularly patches USB-related bugs, and Apple’s support documentation confirms that keeping iOS updated helps avoid accessory connection problems. Go to Settings > General > Software Update and install the latest version. If you’re on anything older than iOS 18.3.1, update right away since that version patched a serious USB Restricted Mode bypass.

#Preventing the Message Long Term

Use MFi-certified cables and accessories. Third-party cables without Apple certification can cause intermittent connection issues that trigger the unlock prompt more often than necessary.

Keep your iPhone’s charging port clean. A quick check every few weeks prevents lint buildup from interfering with data connections. If you see the liquid detected in Lightning connector warning alongside the accessories message, dry the port completely before reconnecting.

#Forgot Your Passcode

You can’t bypass this message without your passcode, Face ID, or Touch ID. That’s the whole point of USB Restricted Mode.

If you’re locked out, you have two built-in options. You can reset your iPhone without a passcode and without a computer using Apple’s recovery process, or you can unlock your iPhone without a password through iTunes/Finder recovery mode. Both methods erase your data, so make sure you have a backup.

For a faster approach, dedicated tools like Tenorshare 4uKey can remove the lock screen. We tested Tenorshare 4uKey on an iPhone 14 Pro with a forgotten passcode, and it removed the lock in about 8 minutes including the firmware download. You’ll lose all data on the device, so treat this as a last resort.

#The Case for Keeping USB Restricted Mode On

Honestly, for most people, no. Keep it on.

USB Restricted Mode exists for a good reason. How-To Geek reports that hacking tools actively exploit USB connections to crack iPhone passcodes, and USB Restricted Mode is your main defense against that.

The only scenario where disabling it makes sense: you use a docked setup at home where your iPhone connects to a desktop hub every day and unlocking first is a hassle. Even then, re-enable it when you travel.

If your phone connects to your car but CarPlay isn’t working, the issue is usually the CarPlay settings rather than USB Restricted Mode.

#Bottom Line

Unlock your iPhone and reconnect. That fixes it for most people.

If the message keeps appearing, toggle USB Accessories in Settings > Face ID & Passcode, check your cable, and clean out the charging port. Forgot your passcode entirely? Look into recovery mode or resetting your screen time passcode to regain access.

#Frequently Asked Questions

#Does USB Restricted Mode stop my iPhone from charging?

No. Charging works fine even with USB Restricted Mode active. Only data transfer gets blocked.

#Can I keep USB Restricted Mode on and still use CarPlay?

Yes, but unlock your iPhone before plugging into the car. Once connected, CarPlay works normally for the rest of your drive. Previously connected accessories stay authorized for up to 30 days, so you shouldn’t see the message with your regular car cable unless the phone was locked for an extended period.

#Why does the message appear even with a brand-new Apple cable?

It’s not about the cable. USB Restricted Mode triggers based on your phone’s lock state. Been locked for over an hour? Any cable will show this message when connecting to a data-capable device.

#Is it safe to set USB Accessories to “Always Allow”?

It’s a security trade-off. Anyone with physical access to your locked phone could plug in a USB device and extract data. If you carry sensitive work information, keep the default.

#What changed with USB Restricted Mode in iOS 18?

iOS 18 added a new setting under Settings > Privacy & Security > Security > Wired Accessories with two options: “Automatically Allow When Unlocked” and “Always Allow.” The original Face ID & Passcode toggle still exists alongside it. Apple also patched a bypass vulnerability (CVE-2025-24200) in iOS 18.3.1 that allowed physical attackers to disable USB Restricted Mode through an assistive device exploit, so updating to the latest version is more important than ever.

#Will a factory reset fix the persistent unlock message?

Yes, but try a force restart first. A factory reset erases everything on your phone and should be a last resort. Back up to iCloud or iTunes before going that route.

#Does this message appear on iPads too?

Yes. Same feature, same fix. Go to Settings > Face ID & Passcode (or Touch ID & Passcode) and toggle USB Accessories on.

#Can I disable USB Restricted Mode using MDM or Screen Time?

MDM administrators can manage USB Restricted Mode through device management profiles. According to Apple’s deployment guide, enterprise admins control this setting remotely. Screen Time can’t change it. If your auto-lock keeps changing on its own, an MDM profile might be installed on your device.

Fone.tips Editorial Team

Our team of mobile tech writers has been helping readers solve phone problems, discover useful apps, and make informed buying decisions since 2018. About our editorial team

Share this article