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

launch simulator: Unable to lookup in current state: Shutting Down #8

Open
CatStudioApp opened this issue Jan 8, 2025 · 0 comments

Comments

@CatStudioApp
Copy link

/Users/cat/.rbenv/versions/3.3.4/lib/ruby/gems/3.3.0/gems/simctl-1.6.10/lib/simctl/executor.rb:14:in `block in execute': [!] An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): (RuntimeError)
Unable to lookup in current state: Shutting Down
simulator_name = 'iPhone 16'
    device = launch_simulator(
      app_path: app,
      device_name: simulator_name,
      language: 'en-US',
      ios_version: '18.2'
    )
    UI.message("device: #{device}, app: #{app}")

    # run command to get device id with UUID format
    device_id = `xcrun simctl list devices | grep 'iPhone 16' | grep -o '[A-F0-9]\{8\}-[A-F0-9]\{4\}-[A-F0-9]\{4\}-[A-F0-9]\{4\}-[A-F0-9]\{12\}'`.strip
    UI.message("device_id: #{device_id}")

    maestro_test(
      device: device_id,
      tests: File.realpath("#{IOS_PROJECT_ROOT}/../../ui-tests/maestro/ios"),
      debug_output: 'tmp/ui-tests'
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant