无法启动插件PDF套件。 PDF 仅在 Mac 上加载空白,在 IOS 上加载良好。没有更改代码。正在工作

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

在不更改代码的情况下,我们所有在

WKWebKit
中生成 PDF 的应用程序现在都显示空白页面。仅限 Mac。

这些应用程序不是为 Mac 设计的,而是适用于 M1 芯片或更高版本 Mac 上的 iPad 的 iOS 应用程序。在 iPad iPhone 上,PDF 正确加载

这是我们在 Mac 上的所有应用程序中最近发生的事情,在不同版本的 MacOS 上都没有更新,也没有对代码进行任何更改。

错误指向问题开始

PDFKit

控制台错误:

[u A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E:m ] [com.apple.PDFKit.PDFExtensionView(1.0)] Failed to start plugin; pkd returned an error: Error Domain=PlugInKit Code=4 "RBSLaunchRequest error trying to launch plugin com.apple.PDFKit.PDFExtensionView(A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E): Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x144e6cb30 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}" UserInfo={NSLocalizedDescription=RBSLaunchRequest error trying to launch plugin com.apple.PDFKit.PDFExtensionView(A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E): Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x144e6cb30 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}
Plugin <id<PKPlugIn>: 0x135077e30; core = <[u A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E] [com.apple.PDFKit.PDFExtensionView(1.0)],[d 412A02BE-85DD-40F3-BEE5-06EDE446E5CD] [/System/iOSSupport/System/Library/Frameworks/PDFKit.framework/PlugIns/com.apple.PDFKit.PDFExtensionView.appex]>, instance = [(null)], state = 3, useCount = 0> must have pid! Extension request will fail
Failed to acquire assertion for plugin: <id<PKPlugIn>: 0x135077e30; core = <[u A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E] [com.apple.PDFKit.PDFExtensionView(1.0)],[d 412A02BE-85DD-40F3-BEE5-06EDE446E5CD] [/System/iOSSupport/System/Library/Frameworks/PDFKit.framework/PlugIns/com.apple.PDFKit.PDFExtensionView.appex]>, instance = [(null)], state = 3, useCount = 0> pid: 0
Unable to acquire process assertion in beginUsing: with plugin identifier: com.apple.PDFKit.PDFExtensionView, killing plugin
begin extension request <EXExtensionRequest: 0x600001f05a40> Request PK UUID: 5AD99490-3CE0-429F-9F9B-9AA2879FBBAA with item count 0 complete with error: Error Domain=PlugInKit Code=4 "RBSLaunchRequest error trying to launch plugin com.apple.PDFKit.PDFExtensionView(A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E): Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x144e6cb30 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}" UserInfo={NSLocalizedDescription=RBSLaunchRequest error trying to launch plugin com.apple.PDFKit.PDFExtensionView(A1B17741-FA9E-41D8-B1B2-CBAAB1EBCD7E): Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x144e6cb30 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}
PlugInKit error in beginUsing: with plugin identifier: com.apple.PDFKit.PDFExtensionView, killing plugin

苹果问题?还有人经历过这个吗?

ios xcode macos webkit pdfkit
1个回答
0
投票

是的,同样...更新到 Xcode 15。奇怪的是,我可以在预览中查看 PDF,但不能在模拟器中查看。

© www.soinside.com 2019 - 2024. All rights reserved.