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

Scan stuck on xcodebuild action while fired on bitrise #5779

Closed
cojoj opened this issue Aug 17, 2016 · 25 comments
Closed

Scan stuck on xcodebuild action while fired on bitrise #5779

cojoj opened this issue Aug 17, 2016 · 25 comments

Comments

@cojoj
Copy link

cojoj commented Aug 17, 2016

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 also scan works perfectly fine on my local machine.

Complete output when running fastlane, including the stack trace and command used
$ cd .

 (i) No Gemfile found - using system installed fastlane ...
 (i) Updating fastlane ...
$ gem install fastlane --no-document
Successfully installed gh_inspector-1.0.2
Successfully installed fastlane_core-0.50.2
Successfully installed spaceship-0.31.2
Successfully installed cert-1.4.1
Successfully installed sigh-1.9.0
Successfully installed match-0.6.2
Successfully installed supply-0.7.0
Successfully installed scan-0.11.3
Successfully installed pilot-1.10.0
Successfully installed gym-1.7.0
Successfully installed produce-1.2.0
Successfully installed pem-1.3.2
Successfully installed deliver-1.13.2
Successfully installed frameit-2.7.0
Successfully installed snapshot-1.13.1
Successfully installed word_wrap-1.0.0
Successfully installed xcode-install-2.0.2
Successfully installed fastlane-1.100.0
18 gems installed

Fastlane version:
$ fastlane --version
fastlane 1.100.0

Run fastlane:
$ fastlane run_unit_tests
[04:39:09]: ------------------------------
[04:39:09]: --- Step: default_platform ---
[04:39:09]: ------------------------------
[04:39:09]: Driving the lane 'ios run_unit_tests' 🚀
[04:39:09]: FastfileHelper imported
[04:39:09]: --------------------------------
[04:39:09]: --- Step: clear_derived_data ---
[04:39:09]: --------------------------------
[04:39:09]: Derived Data path located at: /Users/vagrant/Library/Developer/Xcode/DerivedData
[04:39:09]: Successfully cleared Derived Data ♻️
[04:39:09]: -----------------------------------
[04:39:09]: --- Step: clean_build_artifacts ---
[04:39:09]: -----------------------------------
[04:39:09]: Cleaned up build artifacts 🐙
[04:39:09]: Using options: {:schemeForTests=>"All tests", :configurationForTests=>"Debug"}
[04:39:09]: ------------------
[04:39:09]: --- Step: scan ---
[04:39:09]: ------------------
[04:39:09]: xcodebuild -list -workspace ./Jodel.xcworkspace

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

lane :run_unit_tests do |options|
    clear_derived_data
    clean_build_artifacts

    ###################################
    # Default parameters
    ###################################
    options = {
        schemeForTests: "All tests",
        configurationForTests: "Debug"
    }.merge(options)
    puts "Using options: #{options.inspect}"
    ###################################
    # Run tests
    ###################################
    jdl_run_tests(options[:schemeForTests], options[:configurationForTests])
end
def jdl_run_tests(scheme, configuration)
    # scan(scheme: scheme, clean: true, device: "iPhone 6s", configuration: configuration, verbose: true)
    scan(scheme: scheme, configuration: configuration, verbose: true)
end

Environment

https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-7.3.log

@matthewjsloane
Copy link

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.

@cojoj
Copy link
Author

cojoj commented Aug 18, 2016

I went through the possibilities... Tested almost everything manually and it seems that it hang because of the configuration I pass as an argument.
Original comand was:

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 Release configuration (or is it Debug by default?). Any ideas what am I doing wrong? 😅 What's strange, when I use same thing, but instead of Debug I pass DebugUITests, which is our different configuratio for UI tests, everything works just fine... 😕

@vpolouchkine
Copy link
Contributor

Hey @cojoj, would you be able to provide a repro project? That would help tremendously in debugging this.

@cojoj
Copy link
Author

cojoj commented Aug 22, 2016

Well @vpolouchkine that'd be actually hard... But I suspect it can be CocoaPods related, cause when I change something in our Podfile everything seems to work (even with Debug). xcodebuild is too silent on this one and I cannot make 100% statement on what is actually failing 😭

@cojoj
Copy link
Author

cojoj commented Aug 23, 2016

I couldn't find it anywhere @vpolouchkine, cause it later goes to Fastlane Core, but maybe scan is piping this xcodebuild -list -workspace ./Jodel.xcworkspace?

https://openradar.appspot.com/27595098

@TKBurner
Copy link

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!

@cojoj
Copy link
Author

cojoj commented Aug 24, 2016

@TKBurner scan is already running with --verbose flage and IMO it's still not telling everything 😜

→ 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...

@cojoj
Copy link
Author

cojoj commented Aug 24, 2016

Looks like this issue is Xcode 7.3.1 only. Tested on 7.2 and 8 and they all work just fine.

@TKBurner
Copy link

Hi @cojoj Thanks for following up. Can you run the command xcodebuild -list -workspace ./Jodel.xcworkspace on your machine and let me know if it runs successfully?

Thanks!

@cojoj
Copy link
Author

cojoj commented Aug 24, 2016

Yes, @TKBurner it always runs successfully 😉

@TKBurner
Copy link

Thanks for following up @cojoj. Is your keychain unlocked? Can you send me your full input to scan? I want to take a look. Thanks!

@mooshee
Copy link

mooshee commented Aug 26, 2016

I'm having the same issue, although it's stuck when I try to run fastlane init.

$ fastlane init --verbose
DEBUG [2016-08-26 14:03:42.30]: Checking if there are any plugins that should be loaded...
INFO [2016-08-26 14:03:42.31]: Detected iOS/Mac project in current directory...
INFO [2016-08-26 14:03:42.31]: This setup will help you get up and running in no time.
INFO [2016-08-26 14:03:42.31]: fastlane will check what tools you're already using and set up
INFO [2016-08-26 14:03:42.31]: the tool automatically for you. Have fun! 
INFO [2016-08-26 14:03:42.31]: Created new folder './fastlane'.
WARN [2016-08-26 14:03:42.31]: xcodebuild -list -workspace ./ExampleApp.xcworkspace

Running xcodebuild -list -workspace ./ExampleApp.xcworkspace from the command line works just fine, spitting out the all of the scheme names.

@cojoj
Copy link
Author

cojoj commented Aug 26, 2016

@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.
And regarding exact scan inputs. Here you go:

# 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)

@TKBurner
Copy link

@cojoj Have you used this setup, https://github.com/bitrise-io/steps-fastlane? Thanks!

@cojoj
Copy link
Author

cojoj commented Aug 30, 2016

Yes @TKBurner I'm using this step.

@TKBurner
Copy link

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!

@mooshee
Copy link

mooshee commented Aug 31, 2016

It appears fastlane-1.102.0 fixes the issue for me.

@cojoj
Copy link
Author

cojoj commented Aug 31, 2016

@TKBurner xcodebuild -list -workspace ./Jodel.xcworkspace works on bitrise. Actually running tests directly with their flow works as well (so we had to skip scan for now).
It's not that some commands work and some don't. It's rather general problem, cause I've faced same issues locally. It's not deterministic... It's like playing russian roulette 😜

@TKBurner
Copy link

@cojoj Any chance you can check out the new update for fastlane? sudo gem update fastlane

Thanks!

@tsheaff
Copy link

tsheaff commented Sep 6, 2016

@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:

Tylers-MacBook-Pro:ios tsheaff$ fastlane dev notes:"fix super-fast Ken Burns" --verbose
DEBUG [2016-09-06 15:53:12.13]: Checking if there are any plugins that should be loaded...
DEBUG [2016-09-06 15:53:12.16]: Using notes: fix super-fast Ken Burns
INFO [2016-09-06 15:53:12.17]: -------------------------------------------------
INFO [2016-09-06 15:53:12.17]: --- Step: Verifying required fastlane version ---
INFO [2016-09-06 15:53:12.17]: -------------------------------------------------
INFO [2016-09-06 15:53:12.17]: fastlane version valid
INFO [2016-09-06 15:53:12.18]: ------------------------------
INFO [2016-09-06 15:53:12.18]: --- Step: default_platform ---
INFO [2016-09-06 15:53:12.18]: ------------------------------
INFO [2016-09-06 15:53:12.28]: Driving the lane 'dev' 🚀
INFO [2016-09-06 15:53:12.29]: ------------------------------------
INFO [2016-09-06 15:53:12.29]: --- Step: increment_build_number ---
INFO [2016-09-06 15:53:12.29]: ------------------------------------
INFO [2016-09-06 15:53:12.29]: $ cd /Users/tsheaff/Code/private/calm/ios && agvtool next-version -all && cd -
INFO [2016-09-06 15:53:12.59]: ▸ Setting version of project Calm to:
INFO [2016-09-06 15:53:12.59]: ▸ 418.
INFO [2016-09-06 15:53:12.61]: ▸ Also setting CFBundleVersion key (assuming it exists)
INFO [2016-09-06 15:53:12.63]: ▸ Updating CFBundleVersion in Info.plist(s)...
INFO [2016-09-06 15:53:12.64]: ▸ Updated CFBundleVersion in "Calm.xcodeproj/../app/Info.plist" to 418
INFO [2016-09-06 15:53:12.65]: ▸ Updated CFBundleVersion in "Calm.xcodeproj/../siri/Info.plist" to 418
INFO [2016-09-06 15:53:12.66]: ▸ Updated CFBundleVersion in "Calm.xcodeproj/../watch/app/Info.plist" to 418
INFO [2016-09-06 15:53:12.67]: ▸ Updated CFBundleVersion in "Calm.xcodeproj/../watch/extension/Info.plist" to 418
INFO [2016-09-06 15:53:12.68]: ▸ Updated CFBundleVersion in "Calm.xcodeproj/../widget/Info.plist" to 418
INFO [2016-09-06 15:53:12.68]: ▸ /Users/tsheaff/Code/private/calm/ios
(in /Users/tsheaff/Code/private/calm/ios)
(in /Users/tsheaff/Code/private/calm/ios)
fetched programs
fetched scenes
INFO [2016-09-06 15:53:18.47]: -----------------
INFO [2016-09-06 15:53:18.47]: --- Step: gym ---
INFO [2016-09-06 15:53:18.47]: -----------------
WARN [2016-09-06 15:53:18.53]: Using legacy build system - waiting for radar to be fixed: https://openradar.appspot.com/radar?id=4952000420642816
WARN [2016-09-06 15:53:18.59]: xcodebuild -list -workspace ./Calm.xcworkspace
^CWARN [2016-09-06 15:53:24.27]: Variable Dump:
INFO [2016-09-06 15:53:24.27]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>nil, :LANE_NAME=>"dev", :BUILD_NUMBER=>"418"}
INFO [2016-09-06 15:53:24.27]: Successfully generated documentation at path '/Users/tsheaff/Code/private/calm/ios/fastlane/README.md'

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | increment_build_number              | 0           |
| 4    | gym                                 | 5           |
+------+-------------------------------------+-------------+

ERROR [2016-09-06 15:53:24.27]: fastlane finished with errors
/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.50.3/lib/fastlane_core/helper.rb:17:in ``': Interrupt
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.50.3/lib/fastlane_core/helper.rb:17:in `backticks'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.50.3/lib/fastlane_core/project.rb:219:in `build_settings'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.50.3/lib/fastlane_core/project.rb:177:in `mac?'
    from /Library/Ruby/Gems/2.0.0/gems/gym-1.8.0/lib/gym/detect_values.rb:66:in `detect_platform'
    from /Library/Ruby/Gems/2.0.0/gems/gym-1.8.0/lib/gym/detect_values.rb:25:in `set_additional_default_values'
    from /Library/Ruby/Gems/2.0.0/gems/gym-1.8.0/lib/gym.rb:26:in `config='
    from /Library/Ruby/Gems/2.0.0/gems/gym-1.8.0/lib/gym/manager.rb:4:in `work'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/actions/gym.rb:22:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:190:in `block (2 levels) in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:175:in `block in execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:174:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:174:in `execute_action'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:100:in `trigger_action_by_name'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/fast_file.rb:140:in `method_missing'
    from Fastfile:19:in `block in parsing_binding'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/lane.rb:33:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/lane.rb:33:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:49:in `block in execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:45:in `chdir'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/runner.rb:45:in `execute'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/commands_generator.rb:49:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/commands_generator.rb:246:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/commands_generator.rb:20:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
    from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.102.0/bin/fastlane:5:in `<top (required)>'
    from /usr/local/bin/fastlane:23:in `load'
    from /usr/local/bin/fastlane:23:in `<main>'

When I print the command in lib/fastlane_core/project.rb:219 I get:

xcodebuild -showBuildSettings -workspace ./Calm.xcworkspace -scheme Calm

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

@tsheaff
Copy link

tsheaff commented Sep 6, 2016

Re-reading this thread, it looks like my hang is possibly an unrelated issue. My issue looks to be related to #4059

@tsheaff
Copy link

tsheaff commented Sep 6, 2016

My issue is fixed by 9d18d6a

@mfurtak mfurtak self-assigned this Sep 7, 2016
@mfurtak
Copy link
Contributor

mfurtak commented Sep 7, 2016

Hi all, we've shipped a workaround (#5626) and timeout/retry solution (#5188) as part of fastlane_core 0.51.0 🚀

Thanks very much for your help! Please let us know how it looks 👍

@mfurtak
Copy link
Contributor

mfurtak commented Sep 7, 2016

We haven't yet updated gym and scan to depend on this new version of fastlane_core directly, so it's possible it won't be pulled in yet. If that's the case, please hang on until we get other confirmation and do releases for gym and scan 🚀

@cojoj
Copy link
Author

cojoj commented Sep 27, 2016

@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 😉

@mfurtak mfurtak closed this as completed Sep 27, 2016
@fastlane fastlane locked and limited conversation to collaborators Dec 26, 2016
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

7 participants