iPhone X locked after forgetting passcode
My iPhone X is screen lock because I forgot the passcode and put wrong passcode 5 time , now can not do anything . How I can do?
[Edited by Moderator]
Earlier iPhone models
My iPhone X is screen lock because I forgot the passcode and put wrong passcode 5 time , now can not do anything . How I can do?
[Edited by Moderator]
Earlier iPhone models
You will need to reset your phone. All data will be wiped, hopefully you made backups.
If you forgot the passcode on your iPhone, or your iPhone is disabled or unavailable -
Click on the link for instructions on how to reset your passcode without a computer if you have iOS 15.2 or higher.
Click on the link for instructions on how to reset your passcode using a computer.
If you forgot your iPhone passcode or your iPhone is disabled - Apple Support
Restore your IPhone from a backup -
Restore your iPhone, iPad, or iPod touch from a backup - Apple Support
You will need to reset your phone. All data will be wiped, hopefully you made backups.
If you forgot the passcode on your iPhone, or your iPhone is disabled or unavailable -
Click on the link for instructions on how to reset your passcode without a computer if you have iOS 15.2 or higher.
Click on the link for instructions on how to reset your passcode using a computer.
If you forgot your iPhone passcode or your iPhone is disabled - Apple Support
Restore your IPhone from a backup -
Restore your iPhone, iPad, or iPod touch from a backup - Apple Support
Your data is not lost if you have a backup either on iCloud or iTunes.

If you see an iPhone or iPad unavailable message or a "Security Lockout" screen
If you forgot your passcode, you can use your Apple ID and password to erase and reset your device without a computer.
Learn what to do if you see "[Device] unavailable" or "Security Lockout" on your iPhone or iPad.)

iPhone is disabled.
Following this process is the only way out if your iPhone is disabled. The steps given in this link will help you reset the passcode -> If you forgot the passcode for your iPhone, iPad, or iPod touch, or your ...

Regarding your data…
Follow this process below to keep your personal data.
If you see the Restore screen on your iPhone, iPad, or iPod touch
If you see the Restore screen on your iPhone, iPad, or iPod touch, learn what to do.

Restart your device
If you see the Restore screen, restart your device:
Reinstall iOS or iPadOS
If you still see the Restore screen after you restart, you need to reinstall iOS or iPadOS:
If the above fails
If your device turns on but gets stuck during start up
If you see the Apple logo or a red or blue screen during startup, try these steps:


Your computer will download the software for your device. If it takes more than 15 minutes, your device will exit recovery mode and you'll need to repeat steps 2 and 3.

If you need more help
Contact Apple Support to set up service if you have any of these issues:
It is really peaceful to see how safe Apple is with such posts. I hope you solve your problem as soon as possible.
iPhone X locked after forgetting passcode