Hi everyone,
I'm encountering an intermittent issue with my Xcode Cloud CI/CD pipeline when pulling Swift Package Manager (SPM) dependencies from AWS CodeArtifact. The build process occasionally fails with an SSL error, but other times it succeeds without any issues. This inconsistency is causing significant disruption to our continuous integration process.
Environment:
Xcode Cloud
Swift Package Manager (SPM) for dependency management
AWS CodeArtifact as the package registry
Error Message:
Error: registry login using https://xx-xx-xx.codeartifact.eu-central-1.amazonaws.com/swift/xxx/login failed: The certificate for this server is invalid. You might be connecting to a server that is pretending to be "xx-xx-xx.codeartifact.eu-central-1.amazonaws.com" which could put your confidential information at risk.. Would you like to connect to the server anyway?
Selecting any option will automatically load the page