iphone 5 boot problem *please help*

hay i jail-broke my iPhone 5 running ios 7 it had died and turned off many times with out problems, but recently it died and was stuck at the apple logo for about 10 min to load up but when it loaded it froze and went back to the apple logo and has done this continuously for many hours now ??? and iTunes cannot detect it.

unable to go into dfu/recovery mode (iTunes wont detect)
Try booting it in Safe Mode.
"It had died and turned off" By this statement I assume the battery of your i5 is completely finished. I'd suggest you to let it charge for a time and try turning it on. It will turn on. Or else you may try getting your phone into safe mode or dfu mode. (Sometimes, the DFU mode procedure does not work) so keep trying. Cheers!
how do i do that and it doesnt go into a turned off state it will be dead i will charge it and it will start booting up and be stuck in this loop
THANK YOU SO MUCH SAFE MODE WORKED YOUR A LEGEND

i also think the battery may have issues
THANK YOU SO MUCH SAFE MODE WORKED YOUR A LEGEND

i also think the battery may have issues

Happy to help. 🙂

Original thread: https://forums.imore.com/threads/iphone-5-boot-problem-please-help.277840/