fix(ci): provision App Groups for Developer ID releases - #141
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Provision the main app and FinderSync extension for the registered
group.cn.wflixu.RClickApp Group in Developer ID releases.RClick 2.1.0 can crash immediately on macOS 27 when SwiftData tries to create its store inside the App Group container. The shipped app and extension do not contain embedded provisioning profiles, and their final signatures do not claim the application and team identifiers needed to associate each process with an App Group-authorizing profile.
Root cause and user impact
Investigation of the affected release found:
RClickDatabase.sqlitewithNSCocoaErrorDomain Code=513/EPERM;Sandbox access to file-write-create denied;ModelContainer.swiftconverts that initialization error into afatalError, producing the observedSIGTRAP;embedded.provisionprofile;Because the store is absent and the failure occurs on the initial file creation, this is not caused by SwiftData schema migration or database corruption. It is a release-signing authorization failure.
Type of Change
Changes
Release workflow
cn.wflixu.RClickandcn.wflixu.RClick.FinderSyncExt.codesigninvocation.group.cn.wflixu.RClickto be an exact element of the profile's App Group array.DeveloperCertificatesarrays to contain the actual signing certificate.codesign --verify --deep --strict.Documentation
MACOS_APP_PROVISIONING_PROFILEandMACOS_EXTENSION_PROVISIONING_PROFILE.Related Issue
Addresses #133
Screenshots
Not applicable; this change has no UI surface.
Testing
Re-run for this PR
.github/workflows/release.ymlas YAML.bash -nindependently against all 14 workflowrunscripts.not.cn.wflixu.RClickis rejected.group.cn.wflixu.RClick.betais rejected.DeveloperCertificatesdoes not contain the signing identity is rejected.git diff --check.Prior investigation and validation (not re-run in this PR preparation)
build-for-testingsucceeded.BookmarkEntityremained writable and readable.Required maintainer configuration
Before the Release workflow can succeed, repository maintainers must configure:
MACOS_APP_PROVISIONING_PROFILEMACOS_EXTENSION_PROVISIONING_PROFILEMACOS_CERT_P12must contain the same Developer ID Application certificate authorized by both profiles.Remaining release validation
This machine does not have the maintainers' GitHub Secrets, Developer ID private key, or production provisioning profiles, so a real Developer ID Release Actions run was not performed.
After producing an official artifact, maintainers should still verify:
Checklist
dev.