iOS Simulator Blank Screen

iOS Simulator always shows a blank dark screen after the app loads.
A simple drawing like this doesn’t show up.

void MainComponent::paint (Graphics& g)
{
    g.setColour (Colours::red);
    g.fillRect(0, 0, 50, 50);
}

I’m using Xcode 9.4.1 with macOS 10.13.6 on a late 2009 iMac with JUCE 5.3.2

Please help.

You’ll want to do setFullScreen (true); in your main window’s constructor so it covers the whole of the device screen, otherwise things could be being drawn offscreen.

That worked. Thanks.