<?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>241713</bug_id>
          
          <creation_ts>2022-06-17 06:35:06 -0700</creation_ts>
          <short_desc>REGRESSION(r295496): [MacOS] Build terminates with CodeSign error</short_desc>
          <delta_ts>2022-06-22 16:35:13 -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>New Bugs</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="Diego Pino">dpino</reporter>
          <assigned_to name="Elliott Williams">emw</assigned_to>
          <cc>ap</cc>
    
    <cc>emw</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1876437</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-06-17 06:35:06 -0700</bug_when>
    <thetext>Since r295496, I&apos;m getting the following error while building WebKit for MacOS:


```
usr/bin/codesign --force --sign - --timestamp\=none --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework
/Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework: replacing existing signature
/Users/playwright/webkit/WebKitBuild/Release/InjectedBundleTestWebKitAPI.bundle/Contents/Resources/WebKit.framework: unsealed contents…
```

The command I&apos;m using to build is:

```
$ ./Tools/Scripts/build-webkit --release --touch-events --orientation-events
```

Environment is macOS v12.3.1, building with XCode13.2.

Builds work if I build using the new --no-use-workspace flag though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876475</commentid>
    <comment_count>1</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-06-17 10:37:17 -0700</bug_when>
    <thetext>Is build-webkit (without --no-use-workspace) failing reliably in this way? I&apos;ve seen this before, but it&apos;s always been fixed by a rebuild, suggesting some build-time race condition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876523</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-06-17 14:38:20 -0700</bug_when>
    <thetext>I forgot to mention it always fails on a clean build. Once it has failed, a second attempt to build finishes successfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876542</commentid>
    <comment_count>3</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-06-17 15:48:10 -0700</bug_when>
    <thetext>(In reply to Diego Pino from comment #2)
&gt; I forgot to mention it always fails on a clean build. Once it has failed, a
&gt; second attempt to build finishes successfully.

Nice. I&apos;ll look into this and see if I can reproduce the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877458</commentid>
    <comment_count>4</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-06-22 15:50:37 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1699</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877459</commentid>
    <comment_count>5</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-06-22 15:51:05 -0700</bug_when>
    <thetext>Looks like a simple misconfiguration in one the &quot;Product Dependencies&quot; phases. I&apos;m able to reproduce the problem and fix it with this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877487</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-22 16:34:44 -0700</bug_when>
    <thetext>Committed r295755 (251760@main): &lt;https://commits.webkit.org/251760@main&gt;

Reviewed commits have been landed. Closing PR #1699 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877488</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-22 16:35:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/95732878&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>