Previously working projects fail

I have a small example project that ran on both the simulator and a connected iPhone but now it and all other projects are failing with the same error. I am using Xcode 16.0 on MacOS Sonoma 14.6.1., iPhone 11 with iOS 18. Thank you in advance.

The error is:

Failed to resolve host network app id to config: bundleID: com.apple.WebKit.Networking instance ID: Optional([_EXExtensionInstanceIdentifier: 1163B5D2-09D3-4704-9564-61099502138B]) WebContent process (0x114018680) took 1.375772 seconds to launch GPU process (0x1140a0630) took 1.228457 seconds to launch Networking process (0x114034d00) took 1.426249 seconds to launch 0x105820a20 - [pageProxyID=7, webPageID=8, PID=34786] WebPageProxy::didFailProvisionalLoadForFrame: frameID=1, isMainFrame=1, domain=NSURLErrorDomain, code=-1200, isMainFrame=1, willInternallyHandleFailure=0

Message from debugger: killed

Below is the code from one of the examples:

import UIKit import WebKit

class ViewController: UIViewController {

    let webView: WKWebView = {
    let prefs = WKWebpagePreferences()
    prefs.allowsContentJavaScript = true
    let configuration = WKWebViewConfiguration()
    configuration.defaultWebpagePreferences = prefs
    let webView = WKWebView(frame: .zero, configuration: configuration)
    
    return webView
}()



override func viewDidLoad() {
    super.viewDidLoad()
    
    view.addSubview(webView)
    
    guard let url = URL(string: "https://google.com") else {
        return
    }
    webView.load(URLRequest(url: url))
    
    //evaluate JavaScript
    DispatchQueue.main.asyncAfter(deadline: .now()+5){
        self.webView.evaluateJavaScript("document.body.innerHTML") { result, error in
            guard let html = result as? String, error == nil else {
                return
            }
            print(html)
        }
    }

}

override func viewDidLayoutSubviews(){
    super.viewDidLayoutSubviews()
    webView.frame = view.bounds
    
}

}

I have also been getting this exact same problem.

Any updates? I have also been the same problem with react native 0.76.1, actually

Previously working projects fail
 
 
Q