Import iTunes library into clean installation of Catalina

Hullo all, hope you can help:


  • I backed up my iTunes library (the entire "iTunes" folder—contains about 95GB of music ripped from my CDs) on an external hard disk.
  • I installed Catalina on a newly reformatted hard disk on my iMac.
  • I copied the backed up iTunes library into ~/Music (Home folder → Music).
  • I launched the Music app. It showed my handful of iTunes purchases, but not my playlists nor the music I had ripped from CDs. 🤔


Clearly, my iTunes library was not upgraded at that point. The Music app was just seeing the music associated with my iCloud account. Second try:


  • I quit and I deleted the new "Music" folder that was created (~/Music/Music).
  • I launched the Music app holding down option. It asked me the choose a music Library and pointed it to the "iTunes Library.itl" file (~/Music/iTunes/iTunes Library.itl).
  • The Music app launched. Again, only my iTunes purchases appeared, no playlists. 😢


Any idea how I can get the Music app to upgrade and see my older iTunes music library? There are plenty of playlists, ratings, play counts, album artwork from rare CDs that I scanned myself, even some digitised vinyl. This process has worked with previous OS updates, so I would expect my backed up iTunes library should somehow be able to be imported.


Any thoughts?

iMac Line (2012 and Later)

Posted on Oct 14, 2019 1:29 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 13, 2019 1:31 AM

For anyone who still has this issue, I have a partial solution.


In the Music app, go to File → Library → Import Playlist… then navigate to your old iTunes folder and select the iTunes Music Library.xml file. Music will take a while (maybe half an hour, maybe one hour for my library of about 15,000 tracks—I went for lunch), but it will import all your music and playlists, including smart playlists. At least it did in my case after every other method had failed. Ratings and most other metadata was imported as well.


⚠️ Be careful—this is not a perfect solution:

  • It changes the “date added” information for every track to the time when you do the import. This may have implications to you if you are using that date to make smart playlists.
  • In my case it lost some of the artwork. From what I can tell, all of the artwork that I had scanned and pasted myself is present. My guess is that the lost artwork came from the iTunes Store by me selecting “get album artwork” in the past.
  • This method will also import any podcasts as songs. You can sort your music by genre to easily select and delete all the podcasts. Then sort by duration and scan everything that has “continuous” as duration. This will include old radio channels and podcast subscriptions as far as I can tell. You may need to delete those as well. You should be able to redownload those from the Podcasts app.


Hopefully, this is helpful to someone. It's a good enough solution for me for the moment.


(@turingtest2 You may need to include some of this in one of your guides.)

Similar questions

93 replies

Oct 18, 2019 1:21 PM in response to turingtest2

Ok, noticed a new behaviour. If I delete all the new "Music" libraries and launch the music app, it pops up this dialogue box:


When I select "Choose Library..." and point it at my "iTunes Library.itl" file, it doesn't like it and pops up the same dialogue box again. If instead I select "Create Library..." it launches and shows just my iTunes purchases, none of my ripped tracks. So the behaviour we are observing is not "half importing" or anything like that. It's actually not importing anything at all, as if the .itl file were not at all parseable.


If that doesn't give anyone any more ideas, I'll downgrade a second Mac to Mojave, install my iTunes library, and then upgrade to Catalina without reformatting. Let's see if that does anything.

Oct 18, 2019 1:51 PM in response to Orestes Chouchoulas

See Repair security permissions for iTunes for Mac - Apple Community to make sure Music is allowed to read the file.


Otherwise see Empty/corrupt iTunes/Music library after upgrade/crash - Apple Community to try repairing the library with a copy from the Previous iTunes Libraries folder. I'd suggest copying, pasting, and renaming as if you were going to open iTunes with rather than simply accessing the file in the Previous iTunes Libraries folder.


tt2

Dec 26, 2019 7:22 AM in response to tim21i_dot

Wow, me too!

I upgraded to Catalina and signed up for Apple Music then my music that was on an external drive just "disappeared".


Only part of the songs that are in my "Music" play.. the other songs pop up a notice to find the location for the song and it is nowhere to be found.. its like they were wiped from my system.

I just finished ripping 200 CD's from my collection into my iMac and donated them before I move.. now I only have 700 of 1800 songs in my library..

I'll be watching this thread.

Jan 8, 2020 6:05 PM in response to Orestes Chouchoulas

I, too, have this issue. I've tried everything I could think of to to avail. Tonight I finally broke down and called Apple technical support.


The representative I spoke with initially suggested changing the "Music Media folder location" under Preferences > Files to be the iTunes Media folder from my old iTunes folder structure, which I copied to my Mac after installing Catalina. On the first attempt I got an error along the lines of "required file not found". I did a reboot, tried again, and was able to select the folder. Sadly, upon closing Preferences and restarting the Music app, still none of my music was showing up in the app.


I also tried the Option+Click method when opening the Music app and pointing to my old iTunes Library file. Like Orestes Chouchoulas above, I received an endless loop of the dialog box opening again after selecting the file.


Eventually, the representative suggested I go to File > Import and select the folder that contained my music files from the old iTunes folder structure. For me, that was iTunes > iTunes Media > Music. In doing so, the Music app did import all the songs from my iTunes library, and indeed this may be enough for some. This solution did not, however, import Playlists or carry over any library metadata like the original Date Added, Rating, etc. At this dead end, it would seem Orestes Chouchoulas' solution above – (In the Music app, go to File → Library → Import Playlist… then navigate to your old iTunes folder and select the iTunes Music Library.xml file) – would be better.


The most interesting thing I gleaned from my call was that migration of iTunes libraries to the Music app happens seamlessly and automatically when upgrading from previous versions of macOS to macOS Catalina. Unfortunately, it seems those of us who prefer to do a clean install were not considered. I asked the representative if there are plans to release a migration tool for those of us who did a clean install and, unsurprisingly, he said no.


So, my next course of action is to copy my iTunes library to a Mac running a previous version of macOS and then do any upgrade to Catalina. With any luck, after install I'll have a copy of my iTunes music migrated to the new Music app folder structure. From there, I can copy the files to my own Mac. Cumbersome, no doubt, but as of now I see it as the only potential way to do a true migration of my library.

Feb 13, 2020 9:16 PM in response to MacMarwil

4.) After that, I held the ALT Button on the Keyboard and clicked on the Music app.


this leads to a window where you can pick a Library. sorry, no screenshots, as I am on the road, but I am sure we all know that window 🙂


5.) Pick the File you just renamed (Music Library) in the iTunes Folder and confirm. *


music.app will suggest to save a new Library called „music“. Just save this new Library and it should look like this:



You should now have all your music in your Library and all songs be playing in the app.


So what happened here is, that music.app actually changed the file paths of your music files. If you go to preferences of a song and click the file tab, it should direct exactly to the itunes Folder.


6.) make sure, that your music „home“ directory in music.app preferences is set right (your music Folder)...



now you should have the 90% solution. Everything is working and all songs are playing in the frontend, but in the backend there are still two libraries....


the itunes one from the past, and the music one from now on. So if you add a n ew Album or File (see the highlighted File in the screenshot from above „- - - - . .“ (or so...🙂) it is actually an album that was added after all those steps, and it proves that new library additions will go to the new library...






*Don‘t ask me why, but if you pick the itunes Library.itl the folder paths won‘t be adapted and you‘ll be left with dead links to your music path





Feb 15, 2020 3:01 AM in response to unusualroutine

Yes, I could convert my lib into 128 kBit/s files. I could chop my hands off, too.


The entire process took about 20 minutes for 42,017 files or 409 GB. (Copying the files beforehand from my external Adata SSD took another 23 minutes.) And, again, AT NO POINT in the process of assigning the old lib to Musik does anything duplicate.


Quote: “This sounds like you haven‘t changed the music.app media path in the preferences of the software


Right. But why should I? The path is correct, it’s working.

I could manually move the iTunes Media folder into the Music folder (while the Musik app is closed) and reassign it after opening Musik. But I’m scared of confusing things and make a mess of a formerly running system …


Last night I relied on the .xml file—and it saved my a**. ;)

Fortunately, it contained my newest data. But I know, it won’t get updated any longer. I need to switch to a software that is able to handle the Music Library file—Mixxx won’t do so, I’m afraid.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Import iTunes library into clean installation of Catalina

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.