[Webkit-unassigned] [Bug 199705] Build failure in WebHTMLView.mm with the public SDK (Xcode 11 and Mojave)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 5 21:38:07 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199705

--- Comment #18 from mitz at webkit.org ---
(In reply to Kenneth Russell from comment #17)
> Ran into this problem too after updating to Xcode 11 on 10.4.6 in order to
> pick up the iOS 13 SDK, which seemed required to build for the iOS
> Simulator. This presents a chicken-and-egg problem since it's not possible
> to build for the iOS Simulator without Xcode 11, but not possible to build
> for macOS with it.
> 
> I was able to work around this by adding the following hack to
> WebHTMLView.mm:
> 
> diff --git a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
> b/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
> index 347826af20a..448d4c714d9 100644
> --- a/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
> +++ b/Source/WebKitLegacy/mac/WebView/WebHTMLView.mm
> @@ -217,6 +217,8 @@
>  #if !HAVE(SUBVIEWS_IVAR_SPI)
>  @implementation NSView (SubviewsIvar)
>  
> +NSMutableArray<__kindof NSView *> *_subviews;
> +

That’s not correct. It defines a global variable unrelated to the class. Declaring the ivar in a class extension, on the other hand, should work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191006/08c86d82/attachment.html>


More information about the webkit-unassigned mailing list