Bug 201869
Summary: | Build fails as <objc/Protocol.h> header was removed from Xcode 11 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Adrian Niculescu <adriann> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Major | CC: | ap, jbedard, ryanhaddad |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Adrian Niculescu
As seen here: https://github.com/WebKit/webkit/blob/4768b5159b9dd4b2ce126808b0da8f7bdcd67a07/Source/JavaScriptCore/API/ObjcRuntimeExtras.h#L27
The ObjcRuntimeExtras file imports <objc/Protocol.h>. This header is missing in Xcode 11 GM and GM 2.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adrian Niculescu
*The header is missing when building for iOS.
Jonathan Bedard
(In reply to Adrian Niculescu from comment #1)
> *The header is missing when building for iOS.
Per <https://webkit.org/building-webkit/>, have you run sudo Tools/Scripts/configure-xcode-for-ios-development?
Adrian Niculescu
(In reply to Jonathan Bedard from comment #2)
> (In reply to Adrian Niculescu from comment #1)
> > *The header is missing when building for iOS.
>
> Per <https://webkit.org/building-webkit/>, have you run sudo
> Tools/Scripts/configure-xcode-for-ios-development?
You are correct. I had multiple versions of Xcode installed and even though I ran
sudo Tools/Scripts/configure-xcode-for-ios-development
I did forget to use xcode-select to do this for every Xcode installation I needed to configure:
What I should have done:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo Tools/Scripts/configure-xcode-for-ios-development
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
sudo Tools/Scripts/configure-xcode-for-ios-development
Thank you for your response.