AirPods Max are not automatically switching between my Mac Studio running macOS Golden Gate 27.0.1 and iOS 27.0.1 on my iPhone 15 Pro Max. They connect to my Mac Studio easily, but when I start audio on my iPhone 15 Pro Max, they don't switch automatically. When this happens, I check whether they are listed as connected in the list of devices on the iPhone -- they are. I have tried "forgetting this device" and reconnecting them, but the problem remains. I have also turned the phone off and restarted it several times. No change.
The best workaround I've found so far when the AirPods Max show as connected but don't play audio is to open Apple Music, start a playlist, then manually switch the audio output to AirPods Max. Or, if the screen is locked, I can manually switch the audio. My workaround helps, but it used to switch automatically and seamlessly. Any idea what might be causing it and how to fix it?