Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS App store Release task failed to install/find fastlane using azure pipelines #343

Open
vsambasiva550 opened this issue Jan 9, 2024 · 2 comments

Comments

@vsambasiva550
Copy link

Required Information

Getting below error while installing fastlane

/usr/bin/gem install fastlane
ERROR: Error installing fastlane:
The last version of google-cloud-storage (~> 1.31) to support your Ruby & RubyGems was 1.45.0. Try installing it with gem install google-cloud-storage -v 1.45.0 and then running the current command again
google-cloud-storage requires Ruby version >= 2.7. The current ruby version is 2.6.10.210.

Type: iOS App store Release

Enter Task Name: iOS App store Release task failed to install/find fastlane using azure pipelines

list here (V# not needed):
https://github.com/microsoft/app-store-vsts-extension/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises? TFS on-premises

    • If using TFS on-premises, provide the version: Azure DevOps server 2022

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

  • Agent - Hosted or Private: Private

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version: macOS Ventura Version 13.3 and a gent version: '2.217.2'

Issue Description

Getting below issues while using
- task: AppStoreRelease@1
inputs:
authType: 'UserAndPass'
username: '$(fastLane.auth.userName)'
password: '$(fastLane.auth.password)'
isTwoFactorAuth: true
appSpecificPassword: '$(fastLane.auth.appPassword)'
fastlaneSession: '$(fastLane.auth.session)'
appIdentifier: '$(identifier.name)'
appType: 'iOS'
ipaPath: '/Users/ghx-mac/agent/_work/1/s/*.ipa'
releaseTrack: 'TestFlight'
shouldSkipWaitingForProcessing: true
appSpecificId: 'XXXX'

Issue 1: Unable to install fastlane
Issue 2: Task never ends (with installFastlane:false)
Fastlane installed by manually in mac agent

Task logs

##[debug]found 11310 paths
##[debug]applying include pattern
##[debug]1 matches
##[debug]1 final results
##[debug]Checking for ruby install...
##[debug]which 'ruby'
##[debug]found: '/usr/bin/ruby'
##[debug]Installing fastlane...
##[debug]which 'gem'
##[debug]found: '/usr/bin/gem'
##[debug]which '/usr/bin/gem'
##[debug]found: '/usr/bin/gem'
##[debug]/usr/bin/gem arg: ["install","fastlane"]
##[debug]exec tool: /usr/bin/gem
##[debug]arguments:
##[debug] install
##[debug] fastlane
/usr/bin/gem install fastlane
ERROR: Error installing fastlane:
The last version of google-cloud-storage (~> 1.31) to support your Ruby & RubyGems was 1.45.0. Try installing it with gem install google-cloud-storage -v 1.45.0 and then running the current command again
google-cloud-storage requires Ruby version >= 2.7. The current ruby version is 2.6.10.210.
##[debug]Exit code 1 received from tool '/usr/bin/gem'
##[debug]STDIO streams have closed for tool '/usr/bin/gem'
##[debug]task result: Failed
##[error]Error: The process '/usr/bin/gem' failed with exit code 1

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs

[Insert error from the logs here for a quick overview]

@KonstantinTyukalov
Copy link

Hi @vsambasiva550, have you tried to install Fastlane manually using the same gem command as the task?
gem install fastlane
also, have you tried to update the local ruby version to 2.7?

Issue 2: Task never ends (with installFastlane:false)
Fastlane installed by manually in mac agent

Could you please share the version of Fastlane that you installed, and a portion of the logs where the task gets stuck?

@vsambasiva550
Copy link
Author

vsambasiva550 commented Jan 10, 2024

Hi @KonstantinTyukalov

Thank you for your response

here is the log for fastlane install task

##[debug]/bin/bash arg: --noprofile
##[debug]/bin/bash arg: --norc
##[debug]/bin/bash arg: /Users/uname/agent/_work/_temp/dc580ce1-c9cb-4bd4-ad3f-48e12567aa6f.sh
##[debug]exec tool: /bin/bash
##[debug]arguments:
##[debug] --noprofile
##[debug] --norc
##[debug] /Users/uname/agent/_work/_temp/dc580ce1-c9cb-4bd4-ad3f-48e12567aa6f.sh
/bin/bash --noprofile --norc /Users/uname/agent/_work/_temp/dc580ce1-c9cb-4bd4-ad3f-48e12567aa6f.sh
Password:ERROR: Error installing fastlane:
The last version of google-cloud-storage (~> 1.31) to support your Ruby & RubyGems was 1.45.0. Try installing it with gem install google-cloud-storage -v 1.45.0 and then running the current command again
google-cloud-storage requires Ruby version >= 2.7. The current ruby version is 2.6.10.210.
Successfully installed googleauth-1.8.1
Successfully installed retriable-3.1.2
Successfully installed trailblazer-option-0.1.2
Successfully installed declarative-0.0.20
Successfully installed uber-0.1.0
Successfully installed representable-3.2.0
Successfully installed google-apis-core-0.11.2
Successfully installed google-apis-storage_v1-0.31.0
Successfully installed google-apis-iamcredentials_v1-0.17.0
Successfully installed google-cloud-errors-1.3.1
Successfully installed google-cloud-env-1.6.0
Successfully installed google-cloud-core-1.6.1
##[debug]Exit code 1 received from tool '/bin/bash'
##[debug]STDIO streams have closed for tool '/bin/bash'
##[error]Bash exited with code '1'.
##[debug]Processed: ##vso[task.issue type=error;]Bash exited with code '1'.
##[debug]task result: Failed
##[debug]Processed: ##vso[task.complete result=Failed;done=true;]
Finishing: Install Fastlane

In mac agent fastlane installed manually
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants