If your iPhone, iPad, or iPod isn’t recognized by iTunes or Finder, or you keep seeing error 0xE8000015, the lockdown folder is often the culprit. This folder stores pairing records between your computer and your iOS device. Resetting it forces your devices to re-pair from scratch, clearing out corrupted or stale authentication data. This guide walks you through safely deleting and rebuilding the lockdown folder on both macOS and Windows.
What You’ll Need
- Your Mac or Windows PC with iTunes installed (or Finder on macOS Catalina and later).
- Your iPhone, iPad, or iPod touch and its passcode.
- Administrator access to your computer.
- A USB cable to connect your device.
Step-by-Step
On macOS
- Quit iTunes or Finder. Make sure iTunes is not running if you’re on macOS Mojave or earlier. On Catalina or later, quit Finder (right-click the Finder icon in the Dock and choose Quit).
- Open the lockdown folder location. In Finder, press Command + Shift + G to open the Go to Folder dialog.
- Navigate to the lockdown folder. Type
/var/db/lockdownand press Enter. You may be asked for your administrator password to view this folder. - Delete the contents. Select all files inside the lockdown folder (they look like long strings of characters with no extension) and move them to the Trash. Do not delete the folder itself, just its contents.
- Empty the Trash. Right-click the Trash icon and choose Empty Trash. Enter your password if prompted.
- Restart your Mac. This ensures the system clears any cached pairing records.
- Reconnect your device. Plug your iPhone or iPad into your Mac, open iTunes (or Finder), and unlock your device. You’ll see a prompt asking to Trust This Computer – tap Trust and enter your device passcode.
On Windows
- Exit iTunes completely. Right-click the iTunes icon in the system tray (bottom-right) and choose Quit, or use Task Manager to make sure iTunes.exe is not running.
- Open File Explorer. Press Windows + E.
- Show hidden items. In the View tab, check the box for Hidden items so you can see the AppData folder.
- Navigate to the lockdown folder. Paste this path into the address bar and press Enter:
%ProgramData%\Apple\Lockdown(orC:\ProgramData\Apple\Lockdown). - Delete the contents. Select all files inside the Lockdown folder and delete them. Again, keep the folder itself.
- Restart your PC. This clears any cached locks from the system.
- Reconnect your device. Open iTunes, connect your iPhone or iPad, and unlock it. Tap Trust on the device screen and enter your passcode.
Common Mistakes
- Deleting the entire lockdown folder instead of just its contents. On macOS, the system needs the folder to exist; if you delete it, you may get permission errors when it tries to recreate it. If you accidentally delete it, create a new folder named
lockdownwith the correct permissions (drwxrwxr-x, owner root, group wheel) or runsudo mkdir /var/db/lockdownin Terminal. - Not quitting iTunes or Finder first. If the app is still running, it may hold a lock on the files, and the deletion will fail or cause instability.
- Forgetting to restart your computer. A restart clears the in-memory pairing cache. Skipping it often means the old corrupted record is still used.
- Not unlocking your device when reconnecting. You must unlock your iPhone or iPad and tap Trust for the new pairing to be created. If you skip this, the device won’t be recognized.
Tips
- Back up your device first. While resetting the lockdown folder doesn’t touch your data, it’s always good practice to have a fresh backup before troubleshooting.
- Use a different USB port or cable. If the problem persists after resetting, the issue might be physical. Try a different cable or port, preferably a direct USB port on the computer rather than a hub.
- Update iTunes and your device. Pairing issues are often fixed in software updates. Ensure you have the latest version of iTunes (or macOS) and the latest iOS version.
- Check your security software. Sometimes antivirus or firewall software blocks the pairing process. Temporarily disable it to test, then re-enable it and whitelist Apple services if that solves the issue.
Troubleshooting
If the reset doesn’t fix the problem, try these steps in order:
- Check for error messages. Note any error code you see. Common ones like 0xE8000015 or 0xE8000065 often point to pairing issues, but others may indicate driver problems.
- Reinstall Apple Mobile Device USB Driver (Windows). Open Device Manager, expand Universal Serial Bus controllers, right-click Apple Mobile Device USB Driver, and choose Uninstall. Then reconnect your device and let Windows reinstall the driver automatically.
- Reset the device’s network settings. On your iPhone or iPad, go to Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings. This clears the device’s pairing records too, forcing a clean slate on both ends.
- Restart both devices. A simple restart of your iPhone and computer can clear temporary glitches.
- Try a different computer. If possible, connect your device to another Mac or PC. If it works there, the issue is with your original computer’s settings or drivers.
- Check for third-party cleanup tools. Some system cleaners remove Apple-related files. If you’ve used such tools, they may have deleted required components. Reinstalling iTunes (or updating macOS) can restore them.
Frequently Asked Questions
Will resetting the lockdown folder delete my photos or apps?
No. It only removes the pairing certificate between your computer and device. Your data remains untouched.
Do I need to re-pair after every iOS update?
Normally, no. iOS updates preserve pairing records. Only a corrupted record or a change in the computer’s identity would require re-pairing.
What if I don’t see the lockdown folder on Windows?
The folder is hidden by default. Make sure you’ve enabled Hidden items in File Explorer. If it still doesn’t appear, you may need to install iTunes first, as the folder is created when iTunes is first run.
Can I reset the lockdown folder on a Mac without admin rights?
No. The folder is in a system-protected location, and you need administrator privileges to delete its contents.
Why does my device keep asking to Trust This Computer after resetting?
That’s expected. The reset removes the trust record, so your device will ask again. Tap Trust and enter your passcode to re-establish the connection.
Is there a way to avoid this problem in the future?
Keep your software up to date, always use a good-quality cable, and avoid using the same USB port for many different devices without cleaning the connection. Also, don’t force-quit iTunes while a sync is in progress.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Notifications Not Working? Fixes That Work
- Fix Thumbnails Not Showing on Network Drives in Windows 11
- Stop Skype Auto-Start in Windows: 5 Fixes
- SQL Injection Prevention: Step-by-Step Guide
- Fix Windows PowerShell Popping Up
- Print iMessage or Text Conversations on iPhone & iPad