Popping sound when running XCode simulator

Hello, im getting popping / crackling sounds from my Macbook Pro (M4 2024) speakers.

This happens when you do many certain tasks like click buttons or toggling switches when xcode has a simulator open and any background audio is playing, like spotify.

The speakers go crazy especially when starting the simulator in xcode with music in background.

Ive tried:

  • Using blackhole, and changing audio output in the simulator app
  • Deleting both .plist files form preferences file.
  • "coreaudiod" trick in terminal
  • restarting many times
  • different xcode versions and simulators and swift files

Nothing has worked. Any help?

Popping sound when running XCode simulator
 
 
Q