Skip to content

Switching default keychain #350

@jl-gogovapps

Description

@jl-gogovapps

Describe the bug

Ultimately, I'm trying to use match/gym to build apps through a self-hosted runner.

I've tried many combinations of the following:

bundle exec fastlane run create_keychain
bundle exec fastlane run unlock_keychain

However, the result of security default-keychain is always /Library/Keychain/System. I can only change the system default with sudo

Has anyone been able to work though a similar issue? I've found a lot of similar or outdated issues, but they all point to things like "use setup_ci" or unlock the keychain, but I think the crux of the problem here is the inability to change the default keychain.

Alternatively, I'm able to see valid certs with

security find-identity -v -p codesigning mykeychain

but unable to see them with

security find-identity -v -p codesigning

Is there a way for me to get xcodebuild to use the specific keychain?

To Reproduce
See above

Expected behavior

$ security default-keychain mykeychain
$ security default-keychain
/path/to/mykeychain

Runner Version and Platform

OSX - tar xzf ./actions-runner-linux-x64-2.165.2.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions