To unjailbreak your iOS device is easy and simple, you just need to erase your device, then restore it from a backup. The backup won’t include the jailbreak or jailbroken apps, which means your iOS device will restore to stock iOS.
plug your device into your computer and open iTunes. Then click on the device icon in the upper-left corner to open up the device summary screen.
Make sure iTunes has all the movies and music you want on your device, since you will be erasing it shortly. Once you have done so, it’s time to back up your device’s apps and settings.
To back up your device, click on “Back Up Now”.
After that process is finished, open up the Settings on your device, and navigate to iCloud > Find My iPhone. From there, disable Find My iPhone. You will only do this temporarily, as Apple requires this feature to be disabled when restoring your device.
You may receive a pop-up window asking if you want to back up your stuff, but since you already did this, just click on “Don’t Back Up”.
The process will begin and will take around five minutes or so.
You will see the below screen in iTunes when the process is complete. You can either select “Set up as new iPhone if you want to start from scratch, or select “Restore from this backup” to get back all of your apps, settings, contacts, etc.
Restoring a backup to an iOS device takes a few minutes, and when iTunes says that it’s done restoring the backup and your iPhone or iPad completely reboots, you can unlock it. From there, you will see the iOS Setup Assistant start screen. Swipe to the right to continue and go through the steps to set up your iPhone again. You will set up things like Location Services, Touch ID, Apple Pay, and iCloud.
Once you complete the setup process and open the home screen, you will notice that you might have some apps that are darkened out with “Waiting…” underneath these app icons. This means that these apps are downloading to your device and are being installed, so sit back and relax while this happens, as it can take a while.