Bug 275207 - run-webkit-app command not able to set DYLD_FRAMEWORK_PATH under SIP enabled environment.
Summary: run-webkit-app command not able to set DYLD_FRAMEWORK_PATH under SIP enabled ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-06-06 05:33 PDT by Jinyu Meng
Modified: 2024-06-07 11:23 PDT (History)
2 users (show)

See Also:


Attachments
Patch to fix this bug (1.62 KB, patch)
2024-06-06 05:33 PDT, Jinyu Meng
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>