Related Article

About iTunes library files

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Question:

Question: How can I recreate the iTunes Music Library.xml file

Hi,


I am using iTunes 12.9 and the iTunes Music Library.xml file I have is not working properly have not been updated for a while (2012). From what I have read, it does not seem to update anymore anyway.


However, I absolutely need this file for a third party (Serato) in order to organise my library to dj.

What solution do I have to make this work out ?


Thanks

Charles

MacBook Pro, macOS Mojave (10.14.1)

Posted on Nov 11, 2018 2:13 PM

Reply

Nov 11, 2018 4:09 PM in response to Limnos In response to Limnos

I've put the setting to "Share iTunes Library XML with other applications" but it does not create it anymore.

Not sure if you're talking about this setting though ?

My question comes from this statement below :

The iTunes Library.xml file is no longer used by the latest versions of Apple media applications on OS X Yosemite and later. Some third-party applications might still need it. Contact the software developer for more information.


Does this mean nothing can be done anymore ?

Nov 11, 2018 4:09 PM

Reply Helpful

Nov 11, 2018 6:41 PM in response to CharlesMrl In response to CharlesMrl

My XML file is updated properly with iTunes 12.9. See Repair security permissions for iTunes for Mac for a possible fix. I assume you're looking in the right folder for the XML? If you have your media on an external drive you could potentially be looking in the wrong place.


tt2

Nov 11, 2018 6:41 PM

Reply Helpful

Nov 13, 2018 10:02 AM in response to turingtest2 In response to turingtest2

Thanks for your help. Unfortunately it did not work.

Another thing I notice is I can't export the library with File > Library > export : I can click on it and do it but the file would not be created.


If that helps, I use a Macbook pro mid 2012 with MacOs Mojave 10.14.1. I have two drives: one SSD where iTunes application is running and one HDD where my library is set up and I'm looking at both just in case.


Maybe I should reinitialise everything and put everything in one place ?

If you have 12.9 then I'm guessing I should be able to have it working!

Nov 13, 2018 10:02 AM

Reply Helpful

Nov 13, 2018 2:20 PM in response to CharlesMrl In response to CharlesMrl

Are you looking in the same folder as the active iTunes Library.itl file which is getting updated each time you run iTunes? Are the library files on the SSD or the HDD? See Make a split library portable for some background on library layout (albeit Windows images).


tt2

Nov 13, 2018 2:20 PM

Reply Helpful

Nov 13, 2018 2:33 PM in response to turingtest2 In response to turingtest2

Yes, the .itl file gets to be updated however the xml library never gets created. Library files are in the HDD. I tried moving them in the SSD to see if it gets updated.


Now after reading the article you linked I might try that out or try to recreate a library from scratch, or even unistall and install iTunes if that's even possible...

Nov 13, 2018 2:33 PM

Reply Helpful

Nov 13, 2018 3:33 PM in response to CharlesMrl In response to CharlesMrl

Delete the old XML file and remove it from or empty the trash. It is likely called iTunes Music Library,xml which is what it would be called when the library is on the default path. The new name would be iTunes Library.xml, or <Name of ITL>.xml if you'd given the .itl file a different name. Is the folder on the HDD the one you ran a permissions check on?


Reinstalling iTunes 12.9 on Mojave isn't possible, and wouldn't help anyway. Check under iTunes > Preferences > Advanced. Turn Share iTunes Library XML... off if it is on. Then turn it on. Close iTunes. Reopen. Is it still on? Is there an XML file in the iTunes folder?


tt2

Nov 13, 2018 3:33 PM

Reply Helpful

Nov 15, 2018 12:55 PM in response to turingtest2 In response to turingtest2

Hey I finally managed to make it work !


I was following this Serato Troubleshooting article without any success.

However I was missing one point about the files : not deleting the .xml and .itl but just emptying the files and keeping them in the iTunes folder.


After doing that, I opened iTunes to an empty library. I tried to check and uncheck the "Share iTunes Library XML" box and it updated successfully the .xml file.
When I added the music files it got to break the xml again, that's when I understood some files in my library were damaging the itl causing the non creation of the XML file.


So I did it again and added progressively the music files I wanted and it is working fine now.


The only inconvenience is that you loose all your library organisation like the playlists or the historical data for each song like added date or number of plays.

Hopefully it will last !


Thanks for helping me !

Cheers
Charles

Nov 15, 2018 12:55 PM

Reply Helpful (1)
User profile for user: CharlesMrl

Question: How can I recreate the iTunes Music Library.xml file

Welcome to Apple Support Community
  • A forum where Apple customers help each other with their products. Learn more.
  • Sign up with your Apple ID to get started.