unlock_keychain
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
Unlock a keychain
Details
Unlocks the given keychain file and adds it to the keychain search list.
Keychains can be replaced with add_to_search_list: :replace.
Parameters & Options
Total options available: 4
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
path |
String |
FL_UNLOCK_KEYCHAIN_PATH |
login |
Yes | Path to the keychain file |
password |
String |
FL_UNLOCK_KEYCHAIN_PASSWORD |
- |
Yes | Keychain password |
add_to_search_list |
String |
FL_UNLOCK_KEYCHAIN_ADD_TO_SEARCH_LIST |
true |
Yes | Add to keychain search list, valid values are true, false, :add, and :replace |
set_default |
Fastlane::Boolean |
FL_UNLOCK_KEYCHAIN_SET_DEFAULT |
false |
Yes | Set as default keychain |
Examples
unlock_keychain( # Unlock an existing keychain and add it to the keychain search list path: "/path/to/KeychainName.keychain", password: "mysecret")unlock_keychain( # By default the keychain is added to the existing. To replace them with the selected keychain you may use `:replace` path: "/path/to/KeychainName.keychain", password: "mysecret", add_to_search_list: :replace # To only add a keychain use `true` or `:add`.)unlock_keychain( # In addition, the keychain can be selected as a default keychain path: "/path/to/KeychainName.keychain", password: "mysecret", set_default: true)unlock_keychain( # If the keychain file is located in the standard location `~/Library/Keychains`, then it is sufficient to provide the keychain file name, or file name with its suffix. path: "KeychainName", password: "mysecret")Source & Upstream
- Gem Action:
unlock_keychain.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
xfreebird