I am trying to build pipeline for our iOS project using (fastlane + Jenkins). It works totally fine when I am running machine on local host but fails when I connect the same AWS EC2 instance to our Jenkins server.
It’s gives a CodeSign error. Btw, for fastlane command gym
.
Screenshots
☝️Screenshot of a section which I found in gym log.
☝️Screenshots of Jenkins. At only 2 places it comes Archive Failed. So both the screenshots.
☝️Screenshot of Success. On same machine when I login to the GUI and run the lane manually myself.
Basically I had tried literally everything which is available on fastlane Issues, Online forums and Stack Overflow. Some of them are: –
- Nuking the certificates and adding them back again.
- Trusting the certificates in Keychain.
- Unlocking Keychain by using the following commands: –
security set-key-partition-list -S apple: -s -k "password" $login
andsecurity -v unlock-keychain -p "password" $login
. - Keychain > Keys > Selecting Private Keys used for signing > Right Click on Get Info and then allowing all application access.
- Downloading and installing Apple’s world wide certificates manually.
- Setting all the certificates in Login Keychain to “Always Allow.
- Deleting and creating new EC2 instance and tried with local machines as well. Every time I do locally it works but every time I do it from Jenkins Server it fails.