Our team has also encountered issues with WKPDFConfiguration on simulators running iOS versions earlier than 18.4
I just created a new project from a template and added a button that calls this func:
func test() {
let view = WKWebView()
Task {
let pdf = try? await view.pdf()
print(pdf)
}
}
There are no issues on a simulator with iOS 18.4, but if I choose a simulator with iOS 18.3.1 or 17.5 (I haven’t tested all versions), I get an error on launch.
dyld[82520]: Symbol not found: _$sSo9WKWebViewC6WebKitE3pdf13configuration10Foundation4DataVSo18WKPDFConfigurationC_tYaKF
Referenced from: <B4A99988-AC58-30E1-B1B0-E2E036D56E9E> /Users/jlow/Library/Developer/CoreSimulator/Devices/50B15315-D19E-4E4C-8545-3FD87F7DE932/data/Containers/Bundle/Application/2AAFBB29-63B7-4896-B728-D6EC213F0BAA/Test.app/Test.debug.dylib
Expected in: <43C11484-B1FB-38C4-B136-8685F00B82F2> /Library/Developer/CoreSimulator/Volumes/iOS_22D8075/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/WebKit.framework/WebKit
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: