Post

Replies

Boosts

Views

Activity

Reply to xcodebuild OTHER_CODE_SIGN_FLAGS --keychain search order
Hi guys I was having the exact same issue and was able to find a solution by creating a separate keychain for the certificate, then using the below shell command extract the SHA-1 hash of the certificate. security find-identity -v -p codesigning <keychain_path> | awk -F' ' 'NR==1{print $2}' You can then use xcodebuild to pass this certificate sha1 hash for the key CODE&#92;&#95;SIGN&#92;&#95;IDENTITY into the OTHER&#92;&#95;CODE&#92;&#95;SIGN&#92;&#95;FLAGS like below: xcodebuild -workspace Project.xcworkspace -scheme <ProjectScheme> -configuration <ProjectConfigiguration> OTHER_CODE_SIGN_FLAGS='--keychain=<Keychain_Path>' CODE_SIGN_IDENTITY=<SHA1_HASH_FOR_CERTIFICATE clean archive&#9;&#9; Hope this helps you overcome this issue.
Sep ’20