-
Notifications
You must be signed in to change notification settings - Fork 54
gym hangs on xcrun #143
Comments
Okay - this is really weird: having xcode open makes the If anyone else is having this problem: keep xcode open while gym is running. |
I too had this issue, the fix was to have xcode open whilst gym occurs, however I am trying to create a process that fully automates the process and to open xcode is a massive flop in this system, is there a way around it that? I want to just be able to enter gym and done, rather than open xcode, enter gym and done ... |
I just tested, it's working fine for me without having to run Xcode. Which version of Xcode and gym are you using? |
Are you connected via ssh or locally? |
gym 1.1.5
|
gym 1.1.5 |
Having the same problem. |
Any news on this? as Im creating like a fully automated upload system and last night I set off like 10 apps going and it hung on the first one all night because of this: �[37m[19:15:09]: �[0m�[33mxcrun xcodebuild -list -project 'PATH_TO_PROJ.xcodeproj'�[0m I even made a work around where I use a bash script to open the xcode project first and sleep for a few seconds due to the loading time of xcode but that wasn't even long enough. please let me know if there is anything I can do to help... |
I had to do the same. Very hacky! |
Had the same trouble few days ago. The solution for me was to install
And execute it. After this |
Still hangs... |
@filipesperandio Do you have |
The same for me. scan also freezes after 'Build Succeeded'. |
@kugaevsky: It is a Cordova/Ionic project, so after creating the xcode project with |
@kugaevsky: I've also run the script you mentioned, it creates the I also noted that opening XCode from the |
@filipesperandio Yep, there is a in my previous comment. |
Thanks, @kugaevsky. |
The issue here isn't really with gym - as @kugaevsky has pointed out it is a cordova issue where schemes are not created with the project, and so xcodebuild hangs. Xcodebuild should throw an error for this. and return a nonzero exit code. In any case, the @KrauseFx Would there be any merit in having a timeout on the |
That sounds good! 👍 |
Instead of erroring on hang, why not fix it by running recreate_user_schemes and move along? |
In my case this did not reproduce under another user on the same mac. It seems that something screwed up for the particular user only. No cleanup helped, so I have just changed user at this machine. |
We had the same issue on the xcode plugin in jenkins a while back. The solution was to add a 10 second timeout. Issue: https://issues.jenkins-ci.org/browse/JENKINS-24874 See also the current stackoverflow explanation for the timeout http://stackoverflow.com/questions/5959382/building-with-xcodebuild-timed-out-waiting-for-ideworkspace-0x2004cebc0-runc |
See fastlane-old/fastlane_core#69 for the PR. Sorry for the above duplicated notifications, I was cleaning my repo... |
Issue fastlane-old/gym#143 add a 10s timeout to avoid xcode 6 possible hangs
Thank you so much @lacostej! 👍 I just pushed a new release, please test it and let us know if it works 👍 |
I've read the issue but none of the proclaimed solution works for me. When I run Any ideas? |
By the way, I never had the issue while running on 1.48.0. |
Any hope to get a fix/workaround? |
We see this frequently on our slower build machines (i.e. a 3 year old mac mini). Modern machines (my MBP August 2015 for instance) never gets this. |
As a workaround see my answer re the xcode gem
|
@willm unfortunately that didn't resolve the timeouts on our slow machines. |
@dnstevenson I can confirm this, our CI Mac is Mac Mini |
@dnstevenson Same here, Mac mini as CI server |
@dnstevenson Same issue here, also a Mac mini as Jenkins Slave |
I think there are 2 problems to fix:
I've spent 2 hours yesterday trying to find a proper way to run the program, but I always end up having a child process running after killing it upon time out. I've tried IO, open3, open4, etc. I'll try to propose a patch to solve the first one at least. That may unlock some people |
…the current issues with the implementation (fastlane-old/gym#143)
I implemented #2 to allow to override the timeout. Someone wants to try that out ? use FASTLANE_XCODE_LIST_TIMEOUT=0 for example.
|
…the current issues with the implementation (fastlane-old/gym#143)
Same here, Jenkins on Mac Mini. Always happens on the first build of the day, then it's fine for subsequent builds. |
same here, old mac mini for CI. |
…the current issues with the implementation (fastlane-old/gym#143)
…the current issues with the implementation (fastlane-old/gym#143)
Allow the user to override the timeout of the xcode list command, also shows the current issues with the implementation (fastlane-old/gym#143)
Hi guys, We were struggling a lot with this timeouts recreating the user schemes. Since the new environment Many thanks guys. You're awesome. ;) PS: Server machine specs:
|
This issue was migrated to fastlane/fastlane#1844. Please post all further comments there.
|
When gym runs xcrun, it never continues because the xcrun command never closes itself.
Running
xcrun xcodebuild -list -project './platforms/ios/Charmed.xcodeproj'
by hand shows this:It seems as if gym is expecting that xcrun will print the info then close, but in reality it is printing the info and staying open so gym never continues.
The text was updated successfully, but these errors were encountered: