fastlane: Scan hangs until simulator is killed, Xcode 8, iOS 10 simulator

New Issue Checklist

Issue Description

Running scan under Xcode 8 hangs after tests are complete.

[16:16:38]: ▸ ✓ testExample (0.001 seconds)
[16:16:38]: ▸      Executed 1 test, with 0 failures (0 unexpected) in 0.001 (0.003) seconds
[16:16:38]: ▸ 
[16:16:38]: ▸ Test Succeeded

If I manually quit the simulator, scan then prints the test output the the fastlane run continues.

Configuration Files

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

Fastfile:

  desc "Runs all the tests."
  lane :runTests do
    scan(
      configuration: "Debug",
      output_types: "junit",
      device: "iPhone 6s (10.0)",
    )
  end

Environment

fastlane version (run fastlane -v):

fastlane -v
/Users/jshier/.rvm/gems/ruby-2.3.1@project/gems/commander-4.3.5/lib/commander/user_interaction.rb:334: warning: constant ::TimeoutError is deprecated
fastlane 1.95.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?

Yes, through RVM.

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)?

Yes, RVM.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 28 (18 by maintainers)

Most upvoted comments

Still appears to be an issue using beta 2.

Agreed, this appears to be fixed in beta 4! I’ll close this for now, but folks can continue the conversation and we can reopen as needed 👍

I stumbled across a similar thread from xcpretty a few minutes ago that seems to be tracking the same issue: https://github.com/supermarin/xcpretty/issues/227

Running FASTLANE_EXPLICIT_OPEN_SIMULATOR=2 scan I see exactly the same as @johntmcintosh Xcode 8 beta 3 and scan 0.10.0

@jshier Thanks! I’ve looped in the core team 👍

I have the same issue. A quick and dirty workaround might be the following script. First it tells the shell to kill all iOS simulators after 120 seconds and then runs fastlane test, assuming that within 120 seconds the tests all have run. For me it works, reports are created successfully after the kill.

#!/bin/sh /bin/sh -c "sleep 120 ; killall Simulator" & fastlane test