-
-
Notifications
You must be signed in to change notification settings - Fork 356
ci: build and sign xcframework #5271
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 all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b75c181
ci: build and sign xcframework
itaybre 597e804
Setup ruby
itaybre cd8405a
Use fastlane lane
itaybre 9c6fab8
Ignore bump version
itaybre 8c2ff05
Upload permissions for sign_and_zip.sh
itaybre 1d532c2
Add comments to `sign_and_zip.sh`
itaybre 74d9415
Add comment to the test workflow
itaybre eecd516
Use same script for zipping xcframeworks and optionally sign them
itaybre 149d375
Update make comand name
itaybre 82d1dca
Cleanup bash script
itaybre bef2362
Use `build-signed-xcframework` in framework release
itaybre 715dcd5
Add fastlane step to release workflow
itaybre 97b8392
Remove temporary test workflow
itaybre 2cbadf4
Add comment to explain why using ditto
itaybre f3cda1e
Rename `prepare_sign_xcframework` to `prepare_signed_xcframework`
itaybre 9276299
Merge branch 'main' of github.com:getsentry/sentry-cocoa into feature…
itaybre 16c45fd
Update changelog
itaybre 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
|
||
### Features | ||
|
||
- XCFrameworks are now signed (#5271) | ||
|
||
## 8.51.1 | ||
|
||
### Fixes | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -eou pipefail | ||
|
||
args="${1:-}" | ||
|
||
frameworks=( Sentry Sentry-Dynamic SentrySwiftUI Sentry-WithoutUIKitOrAppKit ) | ||
|
||
should_sign=false | ||
[[ "$args" == "--sign" ]] && should_sign=true | ||
|
||
sentry_certificate="Apple Distribution: GetSentry LLC (97JCY7859U)" | ||
|
||
for framework in "${frameworks[@]}"; do | ||
framework_path="Carthage/$framework.xcframework" | ||
|
||
if [[ "$should_sign" == true ]]; then | ||
echo "Signing $framework" | ||
# This is Sentry's certificate name, and should not change | ||
codesign --sign "$sentry_certificate" --timestamp --options runtime --deep --force "$framework_path" | ||
fi | ||
|
||
echo "Zipping $framework" | ||
# use ditto here to avoid clobbering symlinks which exist in macOS frameworks | ||
ditto -c -k -X --rsrc --keepParent "$framework_path" "$framework_path.zip" | ||
done |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.