We are experiencing an issue after Xcode 26.0 to load local javascript files to WKWebView to render our own design.
it used to work well, however after Xcode 26.0, when
[self.webView loadFileURL:fileURL allowingReadAccessToURL:accessURL];
it returns [PID=1514] WebProcessProxy::hasAssumedReadAccessToURL(3198190): no access
self.webRootPath = [[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:CHAT_VIEW_WEB_ROOT];
NSFileManager *fileManager = [NSFileManager defaultManager];
NSError *error = nil;
if (! [fileManager fileExistsAtPath:self.webRootPath]){
[fileManager createDirectoryAtPath:self.webRootPath withIntermediateDirectories:NO attributes:nil error:&error];
}
NSURL *accessURL = [NSURL fileURLWithPath:self.webRootPath];
Not sure how to assign access permission to WKWebView.
Any help much appreciated.