title: Xcode Cocoa: Couldn't read values in CFPrefsPlistSource<0x600002909f10>
body: <p>I'm trying to implement WKWebView on Cocoa/MacOS but I'm getting this error:</p>
  
  <blockquote>
    <p>Unable to load Info.plist exceptions (eGPUOverrides)<br>
    Couldn't read values in CFPrefsPlistSource&lt;0x600002909f10><br>
    (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser,
         ByHost: No, Container: kCFPreferencesNoContainer, Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access</p>
  </blockquote>
  
  <p>Here is my implementation:</p>
  
  <pre><code>import Cocoa
  import WebKit
  
  class ViewController: NSViewController {
      @IBOutlet var webView: WKWebView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          if let url = URL(string: "https://www.apple.com") {
              let request = URLRequest(url: url)
              webView.load(request)
          }
      }
  }
  </code></pre>
  
  <p>My question is how can I fix this issue on my implementation?</p>