Just an update here. I was able to solve my problem. Thanks everyone for the support. I’ll leave here what I did and maybe it will be useful for someone else. Source was https://support.circleci.com/hc/en-us/articles/360012553194-fastlane-gym-failed-with-ARCHIVE-FAILED-error-message-exit-status-65-
I don’t know why you need to ssh but in my case, I wanted to get all the log from a ios build so, what I did was generate the log as artifact to get the error message and solve the problem.