Interactive shell not fully initialised when debugging iOS Fastlane builds on Mac build agent via SSH #2919
Replies: 1 comment 3 replies
-
Firstly, The reason for the error message when you SSH might be same as that in your build, I can see the error message below:
I did a google search of the message and found similar issues to this reported in below threads with possible workarounds: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
React Native
Steps to reproduce
Expected results
Fastlane commands should behave the same as they do when running within the CodeMagic build session.
Actual results
The fastlane commands fail, as the requisite environment variables (i.e. MATCH_SSH_KEY) have not been processed correctly in the interactive bash shell session. This results in failures, such as the Match Git repo not being able to be downloaded, due to missing credentials:
I see in the "Fetching app sources" step in the build, is where the
***_SSH_KEY
environment are processed by CodeMagic:However, if I try and run this same command in my SSH terminal on the same build agent, the folder quoted in the original command does not exist.
PS: I also had to manually start the ssh-agent in my session first:
What manual setup steps do I need to run within the SSH terminal to get the session in the same state as when the build is running? For example:
ssh-agent
ssh-add
, as per above?Would it be possible to expose the same initialisation scripts, so they can be run in the interactive session too?
Build id (optional)
67854c5e6df962e320743542
Beta Was this translation helpful? Give feedback.
All reactions