The sound works on my PC Though. I use a USB to transfer the gameplay from my PC to Mac.
Have you permitted OBS to capture sound? Maybe you need to enable the audio recording permission in Settings interface. If that doesn't work, try to uninstall and re-install OBS for a new try. Otherwise, you need to find another screen recorder like RecMaster to assist your recording.