iPhone Says "iPhone Unavailable" or "Security Lockout"
Tools You'll Need
Apple IDRecovery mode
This appears after too many wrong passcodes. The only fix is erasing the iPhone, so data is lost unless there's a backup.
1. On iOS 15.2 and newer: after the lockout screen appears, tap "Forgot Passcode?" (or "Erase iPhone") at the bottom, then follow the steps and enter the Apple ID password. The phone must be connected to Wi-Fi or mobile data.
2. Older iOS or no network: use recovery mode on a computer and choose Restore (see our recovery mode tip).
3. After erasing, sign in with the same Apple ID to pass Activation Lock, then restore from an iCloud or computer backup.
Tip: use a passcode you'll remember, and keep a backup.