SignatureCollection failed when archive in Jenkins

I am having an issue when archiving in Jenkins. The log says:

SignatureCollection /Users/***/Library/Developer/Xcode/DerivedData/***/Build/Intermediates.noindex/ArchiveIntermediates/***/BuildProductsPath/Release-iphoneos/Some.xcframework-ios.signature

error: signature-collection failed: The operation couldn't be completed. (XCBUtil.CodeSignatureInfo.Error error 0.)

I am able to build and archive without any issue locally.

I have a very similar issue but on Bamboo instead of Jenkins. I have little to no control over the CI tool, unfortunately.

Building and archiving locally works for me as well.

I can't post any build output, unfortunately, but it looks mostly identical to the example in the original post.

SignatureCollection failed when archive in Jenkins
 
 
Q