Bug 249944
Summary: | MiniBrowser: [WKWebView setInspectable:]: unrecognized selector sent to instance | ||
---|---|---|---|
Product: | WebKit | Reporter: | Philip Rogers <pdr> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, inspector-bugzilla-changes, pangle, pdr, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | All | ||
OS: | All |
Philip Rogers
I am getting the following error when running a release build of the MiniBrowser on MacOS 13.1:
WebKitBuild/Release/MiniBrowser.app/Contents/MacOS/MiniBrowser
MiniBrowser[59280:935743] -[WKWebView setInspectable:]: unrecognized selector sent to instance 0x144e21a10
Removing the following line from Tools/MiniBrowser/mac/WK2BrowserWindowController.m works around the error:
_webView.inspectable = YES;
This line was added in https://commits.webkit.org/255557@main
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/103762598>
Patrick Angle
It appears you might be running MiniBrowser without setting the frameworks path, as that would cause the system's WebKit.framework to be loaded, which does not have the `inspectable` property, whereas your built `WebKit.framework` should. If I'm reading your report correctly you are currently directly launching the MiniBrowser binary without pointing it at your built frameworks, which isn't supported. The most convenient way to run MiniBrowser from built sources is with the `run-minibrowser` script in `Tools/Scripts`. This script will run MiniBrowser and tell it to load frameworks from your build products directory as well.
If this issue reproduces for you even when using the `Tools/Scripts/run-minibrowser` script, could you please include what command you used to build the project from the command line? (`Tools/Scripts/build-webkit` + `Tools/Scripts/run-minibrowser` worked for me on a macOS 13.2 developer beta.)