If your iOS or iPadOS device restarts or displays the Apple logo or a spinning gear unexpectedly
If your iPhone, iPad, or iPod touch restarts or shuts down, or displays the Apple logo or a spinning gear, learn how to troubleshoot the issue.
Check your software
Make sure that your device has the latest version of iOS or iPadOS and that your apps are up to date. If the issue continues after updating your software and apps, check your hardware.
Check your hardware
For iPhone 6 and later with iOS 11.3 and later, check your battery health and get recommendations to improve battery performance under Settings > Battery > Battery Health.

Learn more
If an app quits unexpectedly, try these suggestions.
If your battery doesn't need service, but your device continues to frequently restart or turn off, you might need service.
If your device has a frozen screen, doesn't respond, or becomes stuck when you turn it on, learn what to do for iPhone, iPad, or iPod touch.
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.