Mac: How to force aptX/AAC on supported Bluetooth headphones

While iOS won’t support the standard, macOS officially supports aptX (not to be confused with aptX HD) as a Bluetooth audio codec. However, macOS will likely favor AAC as Apple’s apps such as iTunes prefer the codec.