BR: Regression, Screensharing no longer works on iOS

Hi Team

I have run into an issue discovered by a YouTuber, where screensharing no longer works on iOS when running that app in standalone mode. This does not occur when running under a host. When a device is selected to share with, the app displays a black screen, which is mirrored on the target device.

It appears to have been introduced here:

https://github.com/juce-framework/JUCE/commit/514718e037ac9753abea9c389b2355e94859c8ac

Tested on

iPad Pro 13” M4 iOS 18.5, iPad air 11.5” gen, iOS 26.1, iPhone 15 Pro max, iOS 18.6.2

Build on

Mac mini M4 2024, 24G, macOS 26.1, Xcode 26.1 (17B55)

This can be reproduced on the AUv3SynthPlugin demo.

Steps I use to reproduce:

  1. Check out juce on the above commit or later

  2. Build Producer

  3. Open Producer

  4. Open AUv3SynthPlugin demo

  5. Export as iOS and open in xcode

  6. Build and run the standalone on the target device

  7. The app should open as expected, showing the GUI.

  8. Swipe down from the Top Right and select screen share.

  9. Select the device to mirror to.

  10. Notice the app on the iPad turns black, and this is mirrored to the selected device.

  11. Stop Screen Sharing

  12. App remains black.

    output

Thanks for reporting. I believe the issue should be resolved by this commit: