Structure
KeychainHelper
Wraps macOS security CLI commands for keychain management.
struct KeychainHelperOverview
Used by SignAction to create temporary CI keychains, install certificates, and clean up after a build run.
Usage
let keychain = KeychainHelper()
try await keychain.createTemporaryKeychain(name: "shipit-ci", context: context)
try await keychain.installCertificate(p12Path: "./cert.p12", context: context)
try await keychain.cleanupTemporaryKeychain(context: context)Topics
Initializers
init()Creates a
KeychainHelper.
Instance Methods
func cleanupTemporaryKeychain(context: ActionContext) async throwsDeletes the temporary CI keychain and removes it from the search list.
func createTemporaryKeychain(name: String, password: String?, context: ActionContext) async throwsCreates a temporary keychain for use in CI.
func installCertificate(p12Path: String, password: String, keychainName: String, context: ActionContext) async throwsInstalls a
.p12certificate into the specified keychain.func installProvisioningProfile(profilePath: String, context: ActionContext) async throwsInstalls a provisioning profile to the standard profiles directory.
func unlockKeychain(name: String, password: String, context: ActionContext) async throwsUnlocks a keychain.
Type Properties
static let temporaryKeychainName: StringName of the temporary keychain created in CI mode.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype