-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 stuck on xcodebuild action while fired on bitrise #5779
Comments
Possible duplicate of/related to this issue? I've had the -showBuildSettings command hang as well in CI, and can reproduce infrequently (~1/100 times) when running a script to do this locally repeatedly. |
I went through the possibilities... Tested almost everything manually and it seems that it hang because of the scan(scheme: scheme, clean: true, device: "iPhone 6s", configuration: configuration, verbose: true) And now I have something like: scan(scheme: scheme, clean: true, device: "iPhone 6s", verbose: true) And latter works just fine, but... in |
Hey @cojoj, would you be able to provide a repro project? That would help tremendously in debugging this. |
Well @vpolouchkine that'd be actually hard... But I suspect it can be CocoaPods related, cause when I change something in our |
I couldn't find it anywhere @vpolouchkine, cause it later goes to Fastlane Core, but maybe |
Hi @cojoj Thanks for following up. Can you add the --verbose flag to see if there is more output to help us out here. Thanks! |
@TKBurner → fastlane run_tests --verbose
DEBUG [2016-08-24 09:41:11.82]: Checking if there are any plugins that should be loaded...
INFO [2016-08-24 09:41:11.83]: ------------------------------
INFO [2016-08-24 09:41:11.83]: --- Step: default_platform ---
INFO [2016-08-24 09:41:11.83]: ------------------------------
INFO [2016-08-24 09:41:11.86]: Driving the lane 'ios run_tests' 🚀
INFO [2016-08-24 09:41:11.88]: FastfileHelper imported
INFO [2016-08-24 09:41:11.89]: Update Cocoapods...
INFO [2016-08-24 09:41:11.89]: ------------------------------------------
INFO [2016-08-24 09:41:11.89]: --- Step: pod install --no-repo-update ---
INFO [2016-08-24 09:41:11.89]: ------------------------------------------
INFO [2016-08-24 09:41:11.89]: $ pod install --no-repo-update
INFO [2016-08-24 09:41:12.64]: ▸ [in /Users/cojoj/Developer/Jodel]
INFO [2016-08-24 09:41:15.80]: ▸ Analyzing dependencies
INFO [2016-08-24 09:41:15.80]: ▸ Downloading dependencies
INFO [2016-08-24 09:41:15.80]: ▸ Using AFNetworkActivityLogger (2.0.4)
INFO [2016-08-24 09:41:15.80]: ▸ Using AFNetworking (2.6.3)
INFO [2016-08-24 09:41:15.80]: ▸ Using AFNetworking+AutoRetry (0.0.5)
INFO [2016-08-24 09:41:15.80]: ▸ Using AFOAuth2Manager (2.2.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using APToast (1.1)
INFO [2016-08-24 09:41:15.80]: ▸ Using BLKFlexibleHeightBar (1.0.2)
INFO [2016-08-24 09:41:15.80]: ▸ Using BlocksKit (2.2.5)
INFO [2016-08-24 09:41:15.80]: ▸ Using Bolts (1.8.4)
INFO [2016-08-24 09:41:15.80]: ▸ Using Crashlytics (3.7.2)
INFO [2016-08-24 09:41:15.80]: ▸ Using DBPrivacyHelper (0.6.3)
INFO [2016-08-24 09:41:15.80]: ▸ Using DateTools (1.7.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using Expecta (1.0.5)
INFO [2016-08-24 09:41:15.80]: ▸ Using FBSDKCoreKit (4.9.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using Fabric (1.6.3)
INFO [2016-08-24 09:41:15.80]: ▸ Using GZIP (1.0.3)
INFO [2016-08-24 09:41:15.80]: ▸ Using ISO8601 (0.5.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using JSONModel (1.2.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using KLCPopup (1.0)
INFO [2016-08-24 09:41:15.80]: ▸ Using OCMock (3.2.2)
INFO [2016-08-24 09:41:15.80]: ▸ Using ObjcAssociatedObjectHelpers (2.0.1)
INFO [2016-08-24 09:41:15.80]: ▸ Using PureLayout (3.0.1)
INFO [2016-08-24 09:41:15.80]: ▸ Using ReactiveCocoa (2.5)
INFO [2016-08-24 09:41:15.80]: ▸ Using SARate (1.0.3)
INFO [2016-08-24 09:41:15.80]: ▸ Using Specta (1.0.5)
INFO [2016-08-24 09:41:15.80]: ▸ Using UICKeyChainStore (1.0.5)
INFO [2016-08-24 09:41:15.81]: ▸ Using UzysAnimatedGifPullToRefresh (0.9.7)
INFO [2016-08-24 09:41:15.81]: ▸ Using XCDYouTubeKit (2.5.1)
INFO [2016-08-24 09:41:15.81]: ▸ Using ZSWTappableLabel (1.3)
INFO [2016-08-24 09:41:15.81]: ▸ Using iRate (1.11.6)
INFO [2016-08-24 09:41:15.81]: ▸ Using pop (1.0.8)
INFO [2016-08-24 09:41:15.81]: ▸ Generating Pods project
INFO [2016-08-24 09:41:19.18]: ▸ Integrating client project
INFO [2016-08-24 09:41:19.50]: ▸ Sending stats
INFO [2016-08-24 09:41:19.59]: ▸ Pod installation complete! There are 27 dependencies from the Podfile and 30 total pods installed.
INFO [2016-08-24 09:41:19.63]: -----------------------------------------------
INFO [2016-08-24 09:41:19.63]: --- Step: Switch to ios run_unit_tests lane ---
INFO [2016-08-24 09:41:19.63]: -----------------------------------------------
INFO [2016-08-24 09:41:19.63]: Cruising over to lane 'ios run_unit_tests' 🚖
INFO [2016-08-24 09:41:19.65]: --------------------------------
INFO [2016-08-24 09:41:19.65]: --- Step: clear_derived_data ---
INFO [2016-08-24 09:41:19.65]: --------------------------------
INFO [2016-08-24 09:41:19.65]: Derived Data path located at: /Users/cojoj/Library/Developer/Xcode/DerivedData
INFO [2016-08-24 09:41:20.81]: Successfully cleared Derived Data ♻️
INFO [2016-08-24 09:41:20.83]: -----------------------------------
INFO [2016-08-24 09:41:20.83]: --- Step: clean_build_artifacts ---
INFO [2016-08-24 09:41:20.83]: -----------------------------------
INFO [2016-08-24 09:41:20.83]: Cleaned up build artifacts 🐙
INFO [2016-08-24 09:41:20.83]: ------------------
INFO [2016-08-24 09:41:20.83]: --- Step: scan ---
INFO [2016-08-24 09:41:20.83]: ------------------
WARN [2016-08-24 09:41:20.86]: xcodebuild -list -workspace ./Jodel.xcworkspace And it's stuck... On my local machine... |
Looks like this issue is Xcode 7.3.1 only. Tested on 7.2 and 8 and they all work just fine. |
Hi @cojoj Thanks for following up. Can you run the command Thanks! |
Yes, @TKBurner it always runs successfully 😉 |
Thanks for following up @cojoj. Is your keychain unlocked? Can you send me your full input to |
I'm having the same issue, although it's stuck when I try to run
Running |
@TKBurner firs of all, keychain shouldn't be an issue since I pass all credentials in env variables, so fastlane doesn't have to hit keychain at all. # This one is for Unit Tests
scan(scheme: "All tests", clean: true, device: "iPhone 6s", verbose: true) # This one for UI Tests
scan(scheme: 'All UI tests', configuration: 'DebugUITests', clean: true, device: "iPhone 6s", verbose: true) |
@cojoj Have you used this setup, https://github.com/bitrise-io/steps-fastlane? Thanks! |
Yes @TKBurner I'm using this step. |
Hi @cojoj Thanks for continuing to work with me on this. To confirm: you are able to run xcodebuild -list -workspace ./Jodel.xcworkspace on bitrise? Also, can you let me know which scan command is working on bitrise? Thanks! |
It appears |
@TKBurner |
@cojoj Any chance you can check out the new update for fastlane? Thanks! |
@TKBurner I'm seeing a similar non-deterministic hang. It seems to hang about ~70% of the time. Here's the full print, including stack trace, when I cancel the script during the hang:
When I print the command in
When I run that on its own I get the exact same non-determistic hang behavior. Here is my full fastfile, which references a few custom scripts I call using rake: # Fastfile docs: https://github.com/fastlane/fastlane/tree/master/docs
# Actions here: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
fastlane_version "1.102.0"
default_platform :ios
desc "Runs all the tests"
lane :test do
scan
end
desc "Submit a new Dev Build to Crashlytics"
lane :dev do |options|
increment_build_number
full_version = `rake full_app_version`
system("rake fetch_bundles")
gym(
scheme: "Calm",
configuration: "Dev-Release",
xcargs: "ARCHIVE=YES", # Used to tell the Fabric run script to upload dSYM file
use_legacy_build_api: true,
)
crashlytics(
api_token: "<REDACTED>",
build_secret: "<REDACTED>",
notes: options[:notes] || "new dev build #{full_version}",
groups: "Everyone",
)
system("rm -rf calm.ipa")
system("rake push_to_git[\"dev build #{full_version}\"]")
end
desc "Deploy a new version to the App Store"
lane :itunes do
increment_build_number
full_version = `rake full_app_version`
system("rake fetch_bundles")
gym(
scheme: "Calm",
clean: true,
use_legacy_build_api: true,
xcargs: "ARCHIVE=YES",
)
deliver(
force: true,
)
system("rm -rf calm.ipa")
system("rake push_to_git[\"app store build #{full_version}\"]")
system("rake tag_version")
end |
Re-reading this thread, it looks like my hang is possibly an unrelated issue. My issue looks to be related to #4059 |
My issue is fixed by 9d18d6a |
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 👍 |
We haven't yet updated |
@mfurtak looks like so far everything works for us. I guess you can close this issue for now and if anything happens again we can reopen it, but I don't think it should stick around 😉 |
Issue Description
I have
fastlane
configured for my project and recently I've decided I'd go and try bitrise.io.Most things seems to work correctly, but I cannot get
scan
to work with this CI.Curious thing that
gym
works without any problems and alsoscan
works perfectly fine on my local machine.Complete output when running fastlane, including the stack trace and command used
Configuration Files
Please copy the complete content of your
Fastfile
and any other configuration files you use below:Fastfile:
Environment
https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-7.3.log
The text was updated successfully, but these errors were encountered: