Bug fix in iOSAudioIODevice::Pimpl::tryBufferSize for iOS 18

Hi @anthony-nicholls,
I am happy to report the workaround fixed the sample rate issue I was having on iOS 18! However, I’m still noticing a problem related to the trySampleRate method.

When running JUCE 8 on iOS 18, I can hear a series of clicking noises during iOSAudioIODevice initialization. This problem is very similar to a bug @adamwilson reported years ago (Clicks / high pitched noise on audio device initialisation (iOS) - #2 by adamwilson).

The key difference is that previously, this only happened when using an external audio interface. But on iOS 18 with JUCE 8, I can now hear this noise on any wired earbuds directly connected to the device.

Would you mind taking a look into this? Many thanks!