gpt4 book ai didi

Warning prints in console when using WebKit to load YouTube video(使用WebKit加载YouTube视频时在控制台中打印警告)

转载 作者:bug小助手 更新时间:2023-10-22 18:18:32 27 4
gpt4 key购买 nike



Hello I am using WebKit and a WKWebView to load a YouTube video into my SwiftUI application. Whenever the YouTube video plays or pauses I get this message printed in the console as a warning. I think it is due to a lack of permissions or capabilities added to my app. Another SO thread said to add the BackGround Modes capability and check the background fetch and background processing boxes. I did so and I still get this message. I'd appreciate any help in clearing this warning.

你好,我正在使用WebKit和WKWebView将YouTube视频加载到我的SwiftUI应用程序中。每当YouTube视频播放或暂停时,我都会在控制台上打印此消息作为警告。我认为这是由于我的应用程序缺乏权限或功能。另一个SO线程表示要添加BackGround Mode功能,并检查后台获取和后台处理框。我这样做了,我仍然收到这个信息。如果能帮我澄清这一警告,我将不胜感激。



ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=12858, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}*



更多回答
优秀答案推荐

While this thread suggests it is a warning message you could ignore, this one adds:

虽然这个帖子暗示这是一条你可以忽略的警告消息,但这个帖子补充道:



I had set webView.navigationDelegate, but not the setting mentioned above. But adding Background fetch and Background Processing capabilities stopped the messages. I didn't need to add Remote Notifications.



https://developer.apple.com/forums/content/attachment/c866d836-e956-4f14-bc7a-6ef3762a8f3c


Since you already did that, check if you have any version discrepancies regarding WebKit or iOS SDK (between your development environment and your execution environment, ie. where you are running your application).

既然你已经这样做了,请检查你是否有任何关于WebKit或iOS SDK的版本差异(在你的开发环境和执行环境之间,即你运行应用程序的地方)。


And review the configuration settings of your WKWebView instance (WKWebViewConfiguration).

并查看WKWebView实例的配置设置(WKWebViewConfiguration)。


更多回答

Would you please look at this: stackoverflow.com/questions/77101513/…

你能看看这个吗:stackoverflow.com/questions/7710513/…

Von it was already answered, thanks anyways. Maybe you would know how to set maxWidth and maxHeight instead for intrinsicSize.

冯已经回答了,谢谢。也许您应该知道如何为intrinsicSize设置maxWidth和maxHeight。

@ahmed I have seen your last comment just got answered as well!

@啊,我看到了你的最后一条评论,也得到了回复!

Not quite its still a working progress, having trouble with the preview stretching to the maximum frame.

这还不是一个有效的过程,预览拉伸到最大帧时遇到了问题。

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com