我正在尝试使用本地资产加载远程URL,这些资产对xCode很重要,因为它是一个Bundle .

Web服务理解我从代理请求来自WKWebView的文件,它通过所有资源文件路径发送给我,如“ file://asset.bundle/img/test.png ", But when I try on simulator,in safari agent, the console has occurred the error as " [错误]不允许加载本地资源:file://asset.bundle/img/test.png “出于安全原因,这是预期的 .

我想问的是,有没有办法用WkWebKit处理这个场景,如果有可能处理的最佳解决方案是什么?

最好的祝福 .