Question: how to fix your iphone when you forgot passcode?
Answer: If you can't remember your passcode, you'll need to erase your iPhone, which deletes your data and settings, including the passcode. If you backed up your iPhone, you can restore your data and settings after restoring your iPhone.