microsoft / app-store-vsts-extension

Visual Studio Team Services (VSTS) extension for performing continuous delivery to the App Store store from your automated CI builds
Other
93 stars 53 forks source link

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

Open vsambasiva550 opened 5 months ago

vsambasiva550 commented 5 months ago

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

Issue Description

Getting below issues while using

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 commented 5 months ago

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 commented 5 months ago

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