Question: how to play music from iphone on imac?
Answer: Connect your iPhone to your computer using the USB cable.
On your Mac, open Audio Midi Setup. You'll find it in Applications > Utilities.
If you don't see your iPhone listed in the left-hand panel, go to Window > Show iOS Device Browser.
Locate your iPhone in the list of devices and highlight it.
Click on Enable.