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

Not able to set FASTLANE_XCODE_LIST_TIMEOUT #10131

Closed
santoshshetty2612 opened this issue Aug 24, 2017 · 12 comments
Closed

Not able to set FASTLANE_XCODE_LIST_TIMEOUT #10131

santoshshetty2612 opened this issue Aug 24, 2017 · 12 comments

Comments

@santoshshetty2612
Copy link

santoshshetty2612 commented Aug 24, 2017

I am running the parallel builds on Jenkins using fastlane for iOS.
But the build fails due to the error:

xcodebuild -showBuildSettings timed-out after 10 seconds and 3 retries. You can override the timeout value with the environment variable FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT, and the number of retries with the environment variable FASTLANE_XCODEBUILD_SETTINGS_RETRIES

I tried the below steps and still the issue persists.

  1. In fastlane .env file added the FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT=60
  2. In Jenkins before calling Fastlane, added export FASTLANE_XCODE_LIST_TIMEOUT=60

Even after performing both the above steps, I am not able to override the timeout.

The problem only occurs when I try for parallel builds. It seems both the builds tries to called the showBuildSettings and it times out. Hoping that the increase it timeout will solve the issue.

@fastlane-bot
Copy link

It seems like you have not included the output of fastlane env

To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

@mpirri
Copy link
Contributor

mpirri commented Aug 25, 2017

@santoshshetty2612 A few questions:
Which version of Xcode are you running? If you are running the Xcode 9 beta, make sure you are using beta 6 to workaround a hang in xcodebuild -showBuildSettings.
Also, when you change those environment variables do you see the error message change? Just wondering if the values are not actually being set, or aren't being honored by fastlane.

@santoshshetty2612
Copy link
Author

@mpirri I am using Xcode 8.3.3.
There is no change in the error message. Yes the new values don't seem to be honoured by fastlane.

This is my Jenkins call:
export FASTLANE_XCODE_LIST_TIMEOUT=60
fastlane build admin (running the lane)

And this is how I have set it in .env file for fastlane
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT=60

Both the steps is not having any effect on fastlane.

@ohayon
Copy link
Contributor

ohayon commented Aug 28, 2017

Hey @santoshshetty2612 - just looking for some clarification here about your use case, when you say parallel builds what do you mean exactly?

@santoshshetty2612
Copy link
Author

Hi @ohayon

In Jenkins I have created a job to run the iOS Xcode build.
Now I have requirement to run the same job for multiple countries.
I run multiple instances of this job which creates its own workspace.

But at some point of time all these jobs might end up calling xcodebuild -showBuildSettings at around the same time. This might be causing the timeout issues.

If I am able to increase this timeout to 60 seconds, I feel this issue of timeout might get resolved. But I am unable to overwrite this value for fastlane.

@ohayon
Copy link
Contributor

ohayon commented Aug 29, 2017

@santoshshetty2612 - out of curiosity, if you only run one at a time, do you still see the timeout?

@santoshshetty2612
Copy link
Author

@ohayon
Till now I haven't observed this issue when I run at a time.

@ohayon
Copy link
Contributor

ohayon commented Aug 30, 2017

Hmmm. Is there anything you can do in your Jenkins setup to space out the builds by a few seconds so they don't run into each other when running the same commands maybe?

@santoshshetty2612
Copy link
Author

@ohayon This solution won't work out as the builds can be fired anytime. So builds might end up calling xcodebuild -showBuildSettings at around the same time.

It would be better if fastlane handles this.

@fastlane-bot
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

@fastlane-bot
Copy link

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍

@santoshshetty2612
Copy link
Author

Thanks, the issue has been resolved and now I am able to run multiple builds simultaneously.

I need to set two variables in my fastfile.

ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "180"
ENV["FASTLANE_XCODE_LIST_TIMEOUT"] = "180"

@fastlane fastlane locked and limited conversation to collaborators Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants