<?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>257560</bug_id>
          
          <creation_ts>2023-05-31 12:50:47 -0700</creation_ts>
          <short_desc>[WebKit] Enable InstallAPI for macOS/tvOS/watchOS</short_desc>
          <delta_ts>2023-06-16 13:50:46 -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>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Elliott Williams">emw</reporter>
          <assigned_to name="Elliott Williams">emw</assigned_to>
          <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1959118</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-05-31 12:50:47 -0700</bug_when>
    <thetext>Most of the work has already been done since iOS supports InstallAPI in WebKit/WebKitLegacy. Now that we have TAPI_USE_SRCROOT, we can enable it further without risking staleness build bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959119</commentid>
    <comment_count>1</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-05-31 12:51:13 -0700</bug_when>
    <thetext>rdar://103361403</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959448</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-06-01 16:37:48 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/14608</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960597</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-08 12:31:24 -0700</bug_when>
    <thetext>Committed 264993@main (110ccc3202f3): &lt;https://commits.webkit.org/264993@main&gt;

Reviewed commits have been landed. Closing PR #14608 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960695</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-08 19:22:58 -0700</bug_when>
    <thetext>Committed 265005@main (e32ba22bd31f): &lt;https://commits.webkit.org/265005@main&gt;

Reviewed commits have been landed. Closing PR #14801 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1960834</commentid>
    <comment_count>5</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-06-09 14:45:22 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/14826</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961078</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-12 10:02:09 -0700</bug_when>
    <thetext>Committed 265074@main (5ddcda389f55): &lt;https://commits.webkit.org/265074@main&gt;

Reviewed commits have been landed. Closing PR #14826 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961107</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-12 12:09:44 -0700</bug_when>
    <thetext>Committed 265078@main (39ba36f985d0): &lt;https://commits.webkit.org/265078@main&gt;

Reviewed commits have been landed. Closing PR #14874 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961975</commentid>
    <comment_count>8</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-06-15 17:20:13 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/15031</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961978</commentid>
    <comment_count>9</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-06-15 17:29:47 -0700</bug_when>
    <thetext>We need to build fix this for Mac Catalyst, due to the way that TAPI handles symbols in reexported frameworks.

In the catalyst build:

- WebCore implements WKRetain/WKRelease as part of the WAK library. The symbols are hidden (but present in the debug build&apos;s symbol table).

- WebKit implements its own WKRetain/WKRelease, which is exported. It also reexports WebCore, which it only does on macOS.

- During the InstallAPI verification phase, TAPI ignores any symbols from headers that are implemented from a reexported framework. This means that even though it parses WebKit&apos;s WKRetain/WKRelease declarations, it refuses to use them, failing with

    error: no declaration found for exported symbol &apos;_WKRelease&apos; in dynamic library
    error: no declaration found for exported symbol &apos;_WKRetain&apos; in dynamic library

This doesn&apos;t happen in production builds, because they stubify WebCore before WebKit begins building, so TAPI only reads re-exported symbols from WebCore.tbd.

Catalyst WebKit re-exporting WebCore, when all other iOS-like platforms do not, is probably an oversight, but it&apos;s too risky to fix now. The easiest thing we can do is just rename the hidden symbol.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962162</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-16 13:50:45 -0700</bug_when>
    <thetext>Committed 265255@main (159993b61597): &lt;https://commits.webkit.org/265255@main&gt;

Reviewed commits have been landed. Closing PR #15031 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>