The Locked iPhone Problem
If you are wondering how to unlock a deceased person's iPhone, the honest answer is that Apple will not do it for a spouse, an executor, or a death certificate. A store reset is often the expensive mistake. Treat the passcode as an estate item, write "do not factory reset" in your delivery, and align named people before anyone "helps."