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
Scan hangs when getting build settings #4059
Comments
Looks like carthage had the same issue and added a timeout: Carthage/Carthage#1120. And also on xctool: facebookarchive/xctool#295 |
I solved this by having fewer targets in the scheme, I'm not sure if this applies to you. Oddly enough I was only experiencing this inside a VM, there is definitely something sketchy but after some investigation I blame xcodebuild |
@TKBurner Thanks for getting back to me. I'm not too sure why you're thinking those issues could be related, I don't see any mention of @stepanhruda Turns out that I worked around the issue by using I'll close the issue since I won't be able to reproduce it anyway, but @TKBurner I believe fastlane should have a timeout+retry on the Thanks and have a great day! |
@ldiqual Thanks for following up. I'm going to mark this as a feature request so we can triage your idea: I believe fastlane should have a timeout+retry on the showBuildSettings step, as implemented by other tools (see links above).' Really glad to have you using Fastlane 👍 |
We sorted this by moving the test schema up in the list of Manage Schemes. We had some schemes with spaces in - not sure if that could be part of the problem? We moved it above them and it started working. Similar environment, CI (Jenkins) with rbenv. Although - might have just been coincidental... |
@bencollier Thanks for documenting your fix! |
I'm having the same problem with a similar environment, my CI is TeamCity and I don't use rbenv (only Bundler). +1000 for timeout+retry Also the logs should print the command that is being run, instead of the previous one. |
Should this issue be closed since it is now a feature request? |
@fcy Thanks for following up. We'll review this as a team and reply to it as a feature request. Hope that you have a wonderful week! |
Forgot to mention that none of the fixes worked for me. It happens constantly I the only that works for me is re-run the CI build. |
@fcy Thanks for following up 👍 We'll follow up here with relevant updates. |
One more thing for when you guys discuss it. If adding the auto-retry if not a good idea for you, at least add the timeout to make it fail fast so CI builds don't hang for 10 minutes or more before getting killed. |
@fcy Thanks for following up! Good point 👍 |
We hit this again in a different project, again running on Jenkins. Trying all these things fixed it;
It seems that sometimes the project / scheme files just needs something to change to fix this, these steps above seem to somehow kick it into action. |
Hi @bencollier Thanks for following up. Can you let me know if it works consistently if you only have one target per scheme? Thanks! |
Thanks for sharing @bencollier. FWIW I tried and none of that solved it for me. |
Finally! PR #4492 fixes the problem once and for all. I hope it gets merged. |
Thanks @fcy! I'm going to bump that pull request internally so we can hopefully merge soon 👍 |
Any news or plans to create a new PR? |
Closed? Has it been fixed (I mean a fix merged and released)? |
@fcy What version of Xcode are you still experiencing this in? Thanks! |
FWIW I am still experiencing this issue with XCode 8 Beta 5. It seems to me that fastlane does sometimes retry once, but that retry may also hang so I have to retry manually. |
Update run_command to use Helper.backticks, and add the ability to retry before raising Timeout::Error Fixes fastlane#4059
Hi @hotbott Are you using Xcode 7 or 8? We are working on merging our PRs, so you'll see this in master soon. Thanks! |
I'm having the same issue (using Xcode 7), this is getting pretty frustrating. |
@revile Have you checked out the PR to see if it clears things up for you? Thanks! |
@TKBurner We're using Xcode 7.3.1 but Xcode 8 beta still has the same problem. |
@TKBurner The PR will definitely help. Like others I can reproduce the issue manually in the command line by running the command in question, roughly 20% of the time this will hang in Terminal. Retrying will fix it. |
@revile Thanks! Are you able to run it locally. We are working to merge our PRs but as you can see there are about 30 right now so it'll be faster for you to use that version until we are able to merge. Thanks! |
Hi all, we've shipped a workaround (#5626) and timeout/retry solution (#5188) as part of Thanks very much for your help! Please let us know how it looks 👍 |
To test the latest release, please run |
Thanks for merging! It works :) |
Hi all, To get updated and try them out, please run |
I'm going to close this for now, but please feel free to continue the conversation and we can reopen as needed! 👍 |
New Issue Checklist
Issue Description
Scan hangs when getting the build settings:
A couple things to note:
fastlane
, it seems that it's actually hanging onshowBuildSettings
.-showBuildSettings
command manually, though it only happens one time out of five, something like that.@testable import App
everywhere. This change required to modify my Podfile to have different pods for the AppTests target (see below)Complete output when running fastlane, including the stack trace and command used
Please note that I modified fastlane_core's sources to show the build settings command, which is why it shows up in the logs. If I hadn't, only the
-list
command would appear.Note that the command above doesn't exit (1 time out of 5), I have to force kill it.
Configuration Files
Please copy the complete content of your
Fastfile
and any other configuration files you use below:Fastfile:
Podfile:
Environment
fastlane 1.70.0
Bundler + rbenv
ruby 2.3.0
xcode 7.3
cocoapods 1.0.0.beta.6
The text was updated successfully, but these errors were encountered: