Cocoa App webview not loading request : <p>I have used webview to load url but it is not loaded.</p>

<p>i have tried the same with wkwebview but couldn't load url.</p>

<p>I have done following</p>

<ul>
<li>import WebKit</li>
<li>Info.plist

<ul>
<li>Allow Arbitrary Loads - YES</li>
<li>Allow Arbitrary Loads in Web Content - YES</li>
</ul></li>
</ul>

<p>LOG: </p>

<p>dnssd_clientstub ConnectToServer: connect()-> No of tries: 1</p>

<p>dnssd_clientstub ConnectToServer: connect()-> No of tries: 2</p>

<p>dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:11 Err:-1 Errno:1 Operation not permitted</p>

<p>nw_resolver_create_dns_service_locked DNSServiceCreateConnection failed: ServiceNotRunning(-65563)</p>

<p>-CODE</p>

<pre><code> @IBOutlet weak var webvw: WebView!

 override func viewDidAppear() {
        super.viewDidAppear()

        guard let url = URL(string: "https://www.google.co.in") else { return }
        let request = URLRequest(url: url)

        webvw.uiDelegate = self
        webvw.frameLoadDelegate = self
        webvw.mainFrame.load(request)
    }
</code></pre>
