Bug 275207

Summary: run-webkit-app command not able to set DYLD_FRAMEWORK_PATH under SIP enabled environment.
Product: WebKit Reporter: Jinyu Meng <megabitsenmzq>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: a_protyasha, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch to fix this bug none

Description Jinyu Meng 2024-06-06 05:33:01 PDT
Created attachment 471609 [details]
Patch to fix this bug

I'm trying to use the run-webkit-app command to run a demo app with self-built WebKit on macOS. But the app is still using the system one. The WebKit I built is not showing under "Open Files and Ports" in the  "Activity Monitor". You can check this thread for more information: https://bugs.webkit.org/show_bug.cgi?id=274818

After some hints from Alexey Proskuryakov, I managed to fix this bug by passing $ENV to the "open" command with some "--env" arguments. The reason is "open" command couldn't keep environment variables while SIP is enabled.

I will post a PR on GitHub later to fix this bug.
Comment 1 Jinyu Meng 2024-06-06 07:18:29 PDT
Pull request: https://github.com/WebKit/WebKit/pull/29578
Comment 2 EWS 2024-06-07 11:22:19 PDT
Committed 279822@main (34e6542dbf34): <https://commits.webkit.org/279822@main>

Reviewed commits have been landed. Closing PR #29578 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2024-06-07 11:23:48 PDT
<rdar://problem/129408609>