The build failed with one line and nothing else:
PKCS12_MAC_VERIFICATION_FAILED
Enter fullscreen mode
Exit fullscreen mode
No stack trace, no line number, no file. It came out of the credential import step on the macOS build machine, which meant the failure was not in my app. It was in the 4,457-byte file I was handing the toolchain to prove who I am.
I had spent the previous three weeks treating that file as a constant. It was the one thing I was sure about. The app code changed daily; the certificate was issued by Apple and downloaded from a portal that does not make mistakes. So when the build broke, I looked everywhere except at the certificate β at the provisioning profile, at the bundle identifier, at the credentials.json schema, at the Node version, at the EAS CLI version. All of those were wrong at various points, and fixing them did not fix the build.
The certificate was the bug.β¦