<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>226235</bug_id>
          
          <creation_ts>2021-05-25 12:59:02 -0700</creation_ts>
          <short_desc>Warn when running build-webkit with unaligned Xcode release</short_desc>
          <delta_ts>2023-09-26 08:55:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=232606</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=262087</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dvpdiner2</cc>
    
    <cc>jbedard</cc>
    
    <cc>mike</cc>
    
    <cc>svillar</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1763636</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-05-25 12:59:02 -0700</bug_when>
    <thetext>We don&apos;t have any bots checking e.g. Xcode 12 (macOS 11 aligned release) building with the macOS 10.15 SDK and typically such configurations fail. We should make build-webkit fail and document this so people stop questioning what they&apos;re missing when they run into build errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763801</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-05-25 18:27:11 -0700</bug_when>
    <thetext>Xcode 12 with the macOS 10.15 SDK is not a configuration that can be installed directly, this can only happen through hacking pieces together manually.

There is a related issue that you may have had in mind though. Installing Xcode 12 with its macOS 11 SDK on macOS 10.15.x is in fact normal, and that&apos;s what we don&apos;t test for in CI at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763888</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-05-26 06:50:40 -0700</bug_when>
    <thetext>Oh, I thought installing Xcode from the Mac App Store always installed the SDK for the currently installed OS as well as potentially any newer OS SDK!

Regardless, the fundamental problem here is that we neither support nor document our lack of support for misaligned OS/Xcode releases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763952</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-05-26 10:10:20 -0700</bug_when>
    <thetext>Yes, this is definitely a problem. It is super painful, because we should support this very reasonable configuration that people may already have on their machines, but it would be costly because we don&apos;t need it for anything that ships.

As long as we don&apos;t support it, warning makes sense, and it would also be helpful to have it explained at &lt;https://webkit.org/build-tools/&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1765711</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-01 12:59:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/78728355&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1810137</commentid>
    <comment_count>5</comment_count>
    <who name="Darryl Pogue">dvpdiner2</who>
    <bug_when>2021-10-29 10:23:06 -0700</bug_when>
    <thetext>*** Bug 232454 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811090</commentid>
    <comment_count>6</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2021-11-02 06:38:24 -0700</bug_when>
    <thetext>I am unable to build at the moment with MacOS 11.6 and Xcode 12.2 which from what I&apos;ve read should be supported. This is what I get

In file included from /Users/svillar/WebKit/Source/WebCore/PAL/pal/avfoundation/OutputContext.mm:37:                                                                                       
/Users/svillar/WebKit/WebKitBuild/Debug/usr/local/include/pal/cocoa/AVFoundationSoftLink.h:51:33: error: &apos;AVDelegatingPlaybackCoordinator&apos; is only available on macOS                      
      12.0 or newer [-Werror,-Wunguarded-availability-new]                                                                                                                                 
SOFT_LINK_CLASS_FOR_HEADER(PAL, AVDelegatingPlaybackCoordinator)                                                                                                                           
                                ^                                                                                                                                                          
In file included from /Users/svillar/WebKit/Source/WebCore/PAL/pal/avfoundation/OutputContext.mm:37:                                                                                       
In file included from /Users/svillar/WebKit/WebKitBuild/Debug/usr/local/include/pal/cocoa/AVFoundationSoftLink.h:30:                                                                       
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundat
ion.h:13:                                                                                                                                                                                  
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFCore.h
:56:                                                                                                                                                                                       
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlaybackCoordinator.h:315:12:
 note:                                                                                                                                                                                     
      &apos;AVDelegatingPlaybackCoordinator&apos; has been marked as being introduced in macOS 12.0 here, but the deployment target is macOS 11.0.0                                                  
@interface AVDelegatingPlaybackCoordinator : AVPlaybackCoordinator</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811124</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-11-02 08:33:02 -0700</bug_when>
    <thetext>This log says that you have macOS 12 SDK, but Xcode 12.2 wouldn&apos;t include that. Did you copy the SDK manually into it, or do you actually have Xcode 13, the newest?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811154</commentid>
    <comment_count>8</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2021-11-02 09:51:18 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #7)
&gt; This log says that you have macOS 12 SDK, but Xcode 12.2 wouldn&apos;t include
&gt; that. Did you copy the SDK manually into it, or do you actually have Xcode
&gt; 13, the newest?

Yep, sorry for the noise. I actually have both, so I guess the xcode-select will make the trick. Do you know if this is a global or per-user setting?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1811162</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-11-02 10:07:34 -0700</bug_when>
    <thetext>Sorry, I do not know that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1812611</commentid>
    <comment_count>10</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-11-08 08:08:48 -0800</bug_when>
    <thetext>*** Bug 232606 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>