Typically, when you connect your iPhone to your computer, an iPhone icon appears in the iTunes left columns Devices section, indicating that the iPhone is detected. However, what do you do if iTunes does not recognize your iPhone?
First check to check to see if the latest version of iTunes is installed on your computer .
For Mac OS X v10.6 or later
For Windows 7, Windows Vista, or Windows XP  For iTunes To install or update iTunes, After installing or updating, turn off the iPhone and turn it back on. Similarly, restart your computer to load the latest version of iTunes.
If the same problem persists, check for third-party software, such as antivirus or security software, to prevent iTunes iPhone detection . You may need to update, re-configure, or temporarily disable your antivirus / security software to better isolate the problem. If this option works, make sure you re-enable antivirus or security software later.
If you still have the same problem, even after all the troubleshooting steps above, try the iPhone recovery mode to go to the Apple Support page.
You can also try the following:
Using the Mac:
- Connect the iPhone 5 directly to the Mac as opposed to the USB hub, even though the brain is driven.
- If a USB hub is connected to a Mac computer, unplug it.
When using Windows:
- Close iTunes and make sure your iPhone is plugged in.
- Stop Apple Mobile Device by following these steps:
o Open the Run window, type "services.msc", and then click OK.
o Locate Apple Mobile Device and shut it down.
- Follow the steps below to remove the "Apple iPhone" device driver:
o Open the Run window, type "devmgmt.msc", and then click OK.
o Watch under the Portable Devices.
o Right-click the Apple iPhone icon and select Uninstall.
- Launch the "Apple Mobile Device" feature. O Open the Run window, type "services.msc", and then click OK.
o Locate the Apple Mobile Device app and start it.
- Connect your iPhone and let Windows reinstall the drive.
- Open iTunes and see if this time detects the iPhone.
If the above does not work out, sometimes it is time to contact a technical support firm that you trust if the problem is more complicated than you might think.