请求删除不受支持的设备上的背景。错误域=com.apple.VisionKit.RemoveBackground代码=-8“(空)”

问题描述 投票:0回答:1

尝试通过将Web应用程序包装为iOS的WebView来创建应用程序,并在运行该应用程序后,当我在应用程序中测试它一段时间后出现此错误时,我也收到此错误以及白屏当尝试访问 mui 下拉菜单时:

2023-07-18 11:54:15.672093+0530 Demo[9326:166450] Simulator user has requested new graphics quality: 100
2023-07-18 11:55:15.582790+0530 Demo[9326:166450] [com.apple.VisionKit.processing] Analysis not completed because device does not support Image Analysis. This will only be logged once.
2023-07-18 11:55:15.814158+0530 Demo[9326:166450] [com.apple.VisionKit.RemoveBackground] Request to remove background on an unsupported device. Error Domain=com.apple.VisionKit.RemoveBackground Code=-8 "(null)"
2023-07-18 11:55:15.815166+0530 Demo[9326:166450] [UILog] Called -[UIContextMenuInteraction updateVisibleMenuWithBlock:] while no context menu is visible. This won't do anything.

对andoind做了同样的事情,在那里工作得很好,我认为ios应用程序也会有同样的情况,但没有...偶然发现这个错误,坦率地说,我对这个xcode很陌生,并且swift不知道该做什么做什么或如何解决这个问题,任何形式的帮助都有效...谢谢!!

ios swift webview visionkit
1个回答
0
投票

我使用 Cordova iOS 作为将 Web 视图应用程序包装到 ios 应用程序的一部分。 我也面临这个问题。

我通过在 cordova 项目根目录下的 config.xml 文件中添加以下行来修复它:

<preference name="WKWebViewOnly" value="true" />
© www.soinside.com 2019 - 2024. All rights reserved.