Giter VIP home page Giter VIP logo

Comments (16)

xfreebird avatar xfreebird commented on June 20, 2024

@yakimant mostly likely you have a slow machine. are your running on a CI box or manually from command line ?

@KrauseFx in xctest that was tackled by retrying the execution of tests if such a message would appear.

from scan.

yakimant avatar yakimant commented on June 20, 2024

It was on my laptop. I cant increase timeout to be sure.
But even can't see the simulator window opening.

Also - We had such case on CI with plain xcodebuild and fixed it with simulator running
We also have some projects not failing with this issue. It must be some xcodebuild error.

from scan.

xfreebird avatar xfreebird commented on June 20, 2024

@yakimant have you checked the xcodebuild log ? ~/Library/Logs/scan

from scan.

yakimant avatar yakimant commented on June 20, 2024

Hmm, it suddenly disappeared. Will play around and post here the updates.

from scan.

yakimant avatar yakimant commented on June 20, 2024

Ok, I'm getting this issue even with -destination-timeout 500.
From log I can't see anything suspicious.

from scan.

xfreebird avatar xfreebird commented on June 20, 2024

-destination-timeout is for real devices, it doesn't help when using simulators

from scan.

yakimant avatar yakimant commented on June 20, 2024

Anyway, it didn't help, so I'm starting the simulator manually as before:
Process.fork { system "xcrun instruments -t 'Blank' -l 1 -w '#{options[:device] } (#{options[:os]})'" }
And killing afterwards:
killall "Simulator"

from scan.

yakimant avatar yakimant commented on June 20, 2024

Should this be closed?
I can think of two ways of fix:

  1. add scan parameter to run/stop simulator explicitly
  2. add run/stop simulator actions

from scan.

alexanderjrobinson avatar alexanderjrobinson commented on June 20, 2024

I am seeing the same issue. Runs fine on my local machine but not on my CI server which is a reasonably powerful Mac Mini. It works sometimes but more often than not the build fails waiting on the simulator.

In my case the simulator is launched (possibly from a previous build), so it is at least launching the simulator.

from scan.

nitinalabur avatar nitinalabur commented on June 20, 2024

Runs fine on my CI server, when I run it myself, but fails when jenkins on the same machine tries to run scan as part of a lane. (getting the 120 second timeout error)

from scan.

scottrhoyt avatar scottrhoyt commented on June 20, 2024

+1. Good on local. Fails on CI running on a VM (Bitrise).

from scan.

alexanderjrobinson avatar alexanderjrobinson commented on June 20, 2024

Any update or workaround for this issue?

from scan.

scottrhoyt avatar scottrhoyt commented on June 20, 2024

My workaround is to test using xctool as opposed to scan.

from scan.

scottrhoyt avatar scottrhoyt commented on June 20, 2024

Anyone able to verify if this is fixed in 7.2.1:

Command line tool 'xcodebuild test' will no longer time out waiting for Simulator.app to launch

from scan.

alexanderjrobinson avatar alexanderjrobinson commented on June 20, 2024

I am still seeing the same issue on the CI server after upgrading to 7.2.1.

iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.

from scan.

fastlane-bot-helper avatar fastlane-bot-helper commented on June 20, 2024

This issue was migrated to fastlane/fastlane#1943. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

from scan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.