-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xcode] Teach "Create symlinks to XPC services" build phase to also symlink libWebKitSwift.dylib #24276
Conversation
EWS run on previous version of this PR (hash 224e4ac) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libWebKitSwift.dylib expects to be installed in WebKit.framework/Frameworks
Is it always a top-level Frameworks/
directory in the bundle, or does it follow the normal macOS convention of being in a Versions/A/ directory? If so, you probably want to take my suggestion below:
|
Got itβ¦Β I think we still need to use the non-symlinked path in the pbxproj. Without it, the build system could in theory schedule this task to run before it creates the symlink. And once we turn on build script sandboxing, we'd need the build system to know that the script writes to the versioned directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ with fix mentioned above
224e4ac
to
e939c7b
Compare
Sounds good. I went with your suggestion of |
EWS run on current version of this PR (hash e939c7b) |
β¦ymlink libWebKitSwift.dylib https://bugs.webkit.org/show_bug.cgi?id=269229 rdar://122825232 Reviewed by Elliott Williams. libWebKitSwift.dylib expects to be installed in WebKit.framework/Frameworks, but nothing in the engineering build system places it in that location. While WebKitSwiftSoftLink.mm will find the dylib in $BUILT_PRODUCTS_DIR on macOS, tools for creating roots from engineering built products (e.g., `package-root`) do not know to include the dylib without at least a symlink to it in the expected location. To fix this, extended WebKit's "Create symlinks to XPC services" build phase to create a symlink to libWebKitSwift.dylib in the expected install location. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/274514@main
e939c7b
to
58b61c2
Compare
Committed 274514@main (58b61c2): https://commits.webkit.org/274514@main Reviewed commits have been landed. Closing PR #24276 and removing active labels. |
58b61c2
e939c7b
π§ͺ wpe-wk2π tvπ watchπ watch-sim