You can send any iPhone audio up the USB cable to your Mac, and record it. This even works with DRM Apple Music songs.

(via Cult of Mac – Tech and culture through an Apple lens)