How to Unjailbreak Your iPad, iPhone, or iPod Touch
Jailbreaking permits root access to the iOS file system, allowing you to install third-party apps and tweaks on your iPad or iPhone that aren't available in the iOS App Store. It opens up a whole new realm for what your device can do, but jailbreaking does have its downside.
While Congress has taken a strong stance by siding with us and our desire to unlock our devices, jailbreaking is a whole other beast. Apple can rightfully strip you of your warranty and deny any requested service if they find out you've jailbroken the device, because jailbreaking is a violation of the iOS end-user software license agreement.
A shattered screen, broken Home button, or software malfunction suddenly becomes a bigger issue if you're jailbroken because Apple will not offer replacements, support, or any other assistance to you. So what do you do when it comes time for repair or service?
If you've followed our guides on jailbreaking iOS 7.1 and 7.1.1, iOS 7.0, or earlier versions, then all you have to do to get your device back in Apple-friendly mode is remove your jailbreak, and luckily, it's just as easy as jailbreaking it.
Essentially, all you have to do is back up your device, enter your device into recovery mode (DFU), and restore it back to normal.
For a complete rundown of the steps involved, check out Justin's guide on downgrading from iOS 8 beta to iOS 7.1.1. While he is specifically talking about removing the beta version of iOS 8, the process is identical to removing the jailbreak from your device.
Once the official version of iOS is restored on your iPad, iPhone, or iPod touch, you can go to an Apple Store and get Genius Bar support or make warranty claims, just like before.
General diagnostics from the Genius Bar can detect "unauthorized software" on a device that is jailbroken, but will not be able to detect anything abnormal on a device that was previously jailbroken.