-
Notifications
You must be signed in to change notification settings - Fork 3
Add xcframework code signing #966
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2d78421
Add xcframework code signing
jkmassel 125ffca
Remove double blank line
mokagio 85b54ed
Use distribution certificate for XCFramework code signing
mokagio f11a9e1
Address a RuboCop string formatting violation
mokagio 59885f2
Add `setup_ci` call to Fastlane
mokagio 171a59b
Use `set_up_signing_release` in CI
mokagio 0d05c87
Add more CI logs headers
mokagio a007357
Update `download-xcframework.sh` after changing ZIP location
mokagio 2acadaa
Temporarily also download XCFramework ZIP to target
mokagio b0f6ab7
Add `popd` following `pushd`
mokagio 3408d29
Update `Makefile` to package XCFramework in target folder
mokagio 69324fc
Add required mkdir -p to download script
mokagio 1e634c7
Update XCFramework path to reflect restored `target/` dir
mokagio 23acaea
Fix download script one last time
mokagio 28b8ffd
Unzip in `./target/` (?)
mokagio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ swift_package_platform_ios = $(call swift_package_platform_version,ios) | |
| swift_package_platform_watchos = $(call swift_package_platform_version,watchos) | ||
| swift_package_platform_tvos = $(call swift_package_platform_version,tvos) | ||
|
|
||
| certificate_name_release = Apple Distribution: Automattic, Inc. (PZYM8XX95Q) | ||
|
|
||
| # Required for supporting tvOS and watchOS. We can update the nightly toolchain version if needed. | ||
| rust_nightly_toolchain := nightly-2025-07-29 | ||
|
|
||
|
|
@@ -137,6 +139,9 @@ xcframework-package: xcframework-all | |
| xcframework-package-checksum: | ||
| swift package compute-checksum libwordpressFFI.xcframework.zip | tee libwordpressFFI.xcframework.zip.checksum.txt | ||
|
|
||
| xcframework-sign: | ||
| codesign --timestamp -v --sign "${certificate_name_release}" target/libwordpressFFI.xcframework | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| docker-image-web: | ||
| docker build -t wordpress-rs-web -f wp_rs_web/Dockerfile . --progress=plain | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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.
@jkmassel @crazytonyli This PR changed the ZIP destination from
target/to./in https://github.com/Automattic/wordpress-rs/pull/966/files#diff-a3991ebf1475eb82acab13946ffc1eca02b43917f6d5bec3898f45c8b0b9bd53L74I thought it would be enough to update the download call at the start of the script (see above) but there evidently are other parts of the automation that expect the file to be in
target/, because to make the build pass I had to add this additional ZIP expansion in thetarget/folder.I'm happy to help tidy this up. Alternatively, we could restore the ZIP-to-target-folder behavior and leave it at that. Up to you.
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.
Looks like
make xcframework-packagewas introduced to replace thezipcommand. Maybe we can updatexcframework-packageto put the zip file attarget/, and you don't need the new script here to unzip twice?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.
I did that and now there's other stuff that fails...
I gotta go offline for a bit but I'll get to the bottom of this later/tomorrow
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.
Was the issue around the unzipped content not in the
targetdirectory? It's probably because the folder structures of thezip-ed andditto-ed zip files are different. 😥