I'm developing a Mac app that uses WKWebView to display HTML resources. I want to use the Safari inspector to debug the JavaScript in my app.

When I debug my app by launching it from Xcode, Safari doesn't show my app in the Develop menu — it displays "No Inspectable Applications". 

How do I get my Mac app to appear in Safari's Develop menu?