Clicking on Quit and Open Safari Extensions Preferences... does nothing

I am trying to build and run a Safari Web Extension from Xcode and I have enabled "Allow unsigned extensions" in Safari settings. However, I see the below pop up:

And, if click on the "Quit and Open Safari Extensions Preferences..." button, the project stops running on Xcode and nothing happens.

What can be the issue? The extension works and runs fine if I get it from the Mac App Store and this only happens when running from Xcode. I even tried completely uninstalling the mac app store version and still facing the same issue.

Try this fix and let me know if you have any questions: https://developer.apple.com/forums/thread/776800?answerId=833319022#833319022

Clicking on Quit and Open Safari Extensions Preferences... does nothing
 
 
Q