Apple Music on Big Sur

I have written a macOS app that uses the iTunesLibrary framework. The app utilizes the media item's persistentID as provided by the iTunesLibrary framework to manage the settings for the track within my app.

I develop this app on an iMac (late 2015) using Xcode 12.4. I then distribute the app to my MacBook Air (2020 M1). I use Rsync to synchronize any music files from the Music Library that have been modified (lyrics/cover art, etc.), including the Music/Music/Music Library.musiclibrary database.

The need for the persistentID of the media item to remain consistent from one machine to the other is paramount for the app to work. Otherwise, the app is broken. This is why I am Rsyncing the library database.

I did not have an issue with this on macOS Big Sur 11.1 and earlier. The persistentID was being preserved on both machines and the software worked perfectly.

However, for some reason now the persistentID is not being persistent across machines. It is like the Music database on the Macbook Air is being touched/modified somehow and the persistentID of the media item is being changed before I even launch the Music app.

Upon Rsyncing the Music/Music/Music Library.musiclibrary database to the Macbook Air, then launching my app the persistentID does not exist. I then open Apple's Music app and the track is most definitely there, but the persistentID is now different.

Is Apple doing something with the Music app database in these latest releases? I have tried deleting everything from the Music/Music folder and Rsyncing the entire Music/Music folder from my iMac to the Macbook Air (a 2+ hour task), and the problem remains.

I have turned on visibility of hidden folders and I cannot see anything else that could be causing this issue in the Music folder. Should I be looking somewhere else?
Apple Music on Big Sur
 
 
Q