Since I started using XCode Cloud, my builds regularly failed due to networking issues, which is really just embarrassing. How can a company like Apple, which praises itself with a high-quality standard, ***** this up so badly?
However, since two months ago literally every single build started failing for "connection reset by peer"
My ci_post_clone.sh runs this code and surprisingly enough that step succeeds most of the time.
#!/usr/bin/env bash
set -e
brew install cocoapods
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 20.0.1-tem
# cd into actual project root
cd ../../../
./gradlew app:ios:podinstall
However in the archive task the errors start rolling in
2023-08-30T22:27:24.108163427Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108168428Z > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108173676Z > Could not GET 'https://repo.maven.apache.org/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108181057Z > Got socket exception during request. It might be caused by SSL misconfiguration
2023-08-30T22:27:24.108186894Z > Connection reset by peer
2023-08-30T22:27:24.108206745Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108213605Z >
2023-08-30T22:27:24.108219500Z Could not get resource 'https://dl.google.com/dl/android/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108234940Z >
2023-08-30T22:27:24.108239423Z Could not GET 'https://dl.google.com/dl/android/maven2/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108662595Z Got socket exception during request. It might be caused by SSL misconfiguration
2023-08-30T22:27:24.108669328Z
2023-08-30T22:27:24.108716268Z
2023-08-30T22:27:24.108725059Z >
2023-08-30T22:27:24.108732903Z Connection reset by peer
2023-08-30T22:27:24.108740596Z
2023-08-30T22:27:24.108748688Z >
2023-08-30T22:27:24.108759002Z Could not resolve com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11.
2023-08-30T22:27:24.108820147Z >
2023-08-30T22:27:24.108829571Z Could not get resource 'https://maven.pkg.jetbrains.space/public/p/compose/dev/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108837310Z >
2023-08-30T22:27:24.108844471Z Could not GET 'https://maven.pkg.jetbrains.space/public/p/compose/dev/com/google/devtools/ksp/symbol-processing-api/1.9.0-1.0.11/symbol-processing-api-1.9.0-1.0.11.pom'.
2023-08-30T22:27:24.108860417Z
2023-08-30T22:27:24.108866956Z > Got socket exception during request. It might be caused by SSL misconfiguration
So because it is highly unlikely or actually statistically impossible that repo.maven.apache.org, dl.google.com and maven.pkg.jetbrains.space all always decide to crash simultaneously whenever I run an XCode build for the past 3 months, this has to be an issue on their part. Did they suddenly stop allowing internet connections in the archive step?
Apple Support was just useless and aksed for irrelevant and impossible information like:
- my browser
- my ipa file (of a failing build?!)
Does anyone have any idea what causes this or has contacts to someone at apple which can fix this?