You were about to connect to iTunes and transfer a video or sync your music, yet a stupid 'iTunes Cannot Read the Contents of the iPhone … ' error gets in your way. Nothing like that to put a dent in your day, right?
And to make matters worse, iTunes suggests that you reset your device to factory settings! Yeah, and have your music, photos, and contacts removed just to connect to iTunes. What the hell, Apple! Not everyone syncs to iCloud!
In short, the error is caused by nothing more than a corrupted iTunes database file messing things up on your iPhone or iPad, and in no way does something like that warrant a complete factory reset.
So, let’s take a look at a couple of ways to get your device connected to iTunes without actually losing any data.
Since the 'iTunes Cannot Read the Contents of the iPhone … ' error simply happens due to a broken iTunes database index on your iPhone or iPad, let’s try deleting a music track from a playlist and see if that prompts an overwrite of the corrupt file.
Note: If your device doesn't have any music files stored within, skip to the next section.
Remember: Make sure to disconnect your iOS device from your PC or Mac before proceeding.
Step 1: Open Apple Music and select Playlists from the Library pull-down menu.
Step 2: Long-press a music track within a playlist, and then tap Remove.
Note: It doesn’t matter what music track you select. Preferably, select one you don’t like so that you wouldn’t miss it too much!
This should hopefully rectify the corrupted iTunes database index. If so, you should be able to connect to iTunes normally.
Otherwise, let's look into what you can do next.
Rename iTunes Database File
If deleting a song from a playlist didn’t do the trick, then it’s time to force your iPhone or iPad to create a fresh database file from scratch. This involves renaming the existing database, but since you don’t have ready access to system files on your device, you need to resort to using a nifty app called iFunbox to do that.
Warning: Renaming the iTunes database prevents both iTunes and your iOS device from detecting your existing music library. However, there’s a workaround to get your music back, and we’ll discuss that as we move along.
Step 1: Install iFunbox. It’s available for both Mac and Windows, and you should find the steps listed below very similar across both platforms.
If you only use Apple Music and have iCloud Music Library turned on, you shouldn’t have an issue with your music. But if you had your own files stored locally, you won't see them on your device or via iTunes after renaming the database index.
Fortunately, we created a backup earlier, so it’s more than possible to get those files back. Cool, right?
Step 1: Open iFunbox, navigate to the iTunes Control folder, and then select and delete the Music folder.
Note: In case you were wondering, your music library is still present on your device — you just can't see it. Hence, deleting the Music folder frees up space otherwise taken up by a bunch of invisible files.
Step 2: Open iTunes. On the File menu, click Add Folder to Library.
Step 3: Select the Music folder that you backed up earlier, and then click Select Folder.
iTunes should now organize and import the contents within the folder, which you can easily access under the Library section by artist, album, or song.
Cool Tip: If you find the contents within the imported folder a mess, open the Edit menu, click Preferences, and under the Advanced section, check the box next to Keep iTunes Media Folder Organized.
Step 4: Drag and drop whatever you want to add back to your iPhone or iPad under the Devices sections. iTunes should begin copying the files over to your device immediately.
Things can take a while if you've got a large music library, but thankfully, no data was lost during the whole process, which is pretty neat when compared to Apple's 'recommended' factory reset.
Hopefully, you are now connected to iTunes without enduring a complete system restore. Now that would’ve been a real nightmare!
If you couldn’t get the problem fixed after removing a song from a playlist, then using iFunbox to rename the database index should’ve definitely sorted things out.
Yeah, your music library is at risk, but it’s still better than losing access to all of your data, right? And if you took the trouble to back up your music via iFunbox, you can easily get them back afterward.