Import playlist from iphone onto mac
My music library on my mac has become damaged. I tried very hard to restore it from the time machine (restoring old copies in ~/Music/Music/Music Library), but none of the old copies seem to work. The one thing I can think of is that my playlists are on my iphone 12 (iOS 15.5).
So my question is, how can I extract the playlist from my iphone back onto my mac? I'm a bit weary of plugging it in, in case the sync erases the playlists for good!
Thanks!
MacBook Pro 13″, macOS 10.12