I'm running xcodebuild in a script to archive and export my project. I'm code signing using a keychain file. In order to avoid the prompt to enter the keychain password, I'm using
security unlock-keychain -p <Password> <Keychain file>
This command finishes successfully without any output
Still, when I run xcodebuild, I'm getting prompted with
codesign wants to use the "myKeychain" keychain.
What am I missing? I'm running xcode 9.4.1