RE "The application "Xcode" is not open anymore."

If I start a project in Projucer and then select the Xcode button to launch the IDE I get this error. Any ideas? Thanks (JUCE 6.1.2; MacOS 10.15.6)