问题描述
我真的很想让UIActivityViewController
像SwiftUI中的UIViewControllerRepresentable
一样工作。例如,当尝试共享给WhatsApp时,屏幕只是略微移动,好像要执行某些操作一样,然后返回到原来的位置,并出现以下一系列错误(为便于阅读,删除了一些时间戳等):>
[core] HOST: Failed to load remote view controller with error:
Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 2539 named
net.whatsapp.WhatsApp.ShareExtension.viewservice was interrupted,but the message was
sent over an additional proxy and therefore this proxy has become invalid."
[core] Sheet not being presented,calling premature completion
[net.whatsapp.WhatsApp.ShareExtension(2.20.111)] Connection to plugin interrupted while in use.
[net.whatsapp.WhatsApp.ShareExtension(2.20.111)] Connection to plugin invalidated while in use.
这仅仅是与使用SwiftUI时模态的(看似令人难以置信的错误)行为有关吗?我似乎无法解决这个持续存在的问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)