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

Work simultaneously with multiple iOS Simulators #3321

Closed
vchimev opened this issue Jan 16, 2018 · 3 comments
Closed

Work simultaneously with multiple iOS Simulators #3321

vchimev opened this issue Jan 16, 2018 · 3 comments
Assignees
Milestone

Comments

@vchimev
Copy link

vchimev commented Jan 16, 2018

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Yes.

Tell us about the problem

The NativeScript CLI does not recognize more than one running iOS simulator.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.4.1
  • Xcode: 9.0

Please tell us how to recreate the issue in as much detail as possible.

  • Start two iOS Simulators:
chimev@vchimev myApp $ xcrun simctl list | grep Booted
    iPhone 8 (474411C9-4C70-4F3A-A0E5-A77F798E9955) (Booted)
    iPhone X (E685D423-986B-4931-BC82-0B6EF7B3DB2A) (Booted)
  • Execute the tns devices command:
chimev@vchimev myApp $ tns devices

Connected devices & emulators
Searching for devices...
┌───┬─────────────┬──────────┬──────────────────────────────────────┬──────────┬───────────┐
│ # │ Device Name │ Platform │ Device Identifier                    │ Type     │ Status    │
│ 1 │ iPhone 8    │ iOS      │ 474411C9-4C70-4F3A-A0E5-A77F798E9955 │ Emulator │ Connected │
└───┴─────────────┴──────────┴──────────────────────────────────────┴──────────┴───────────┘

Actual

The command outputs only one iOS Simulator.

Expected

The command outputs both iOS Simulators.

Result

The tns run ios command successfully installs the application on the iOS Simulator which the NativeScript CLI recognizes only instead of both of them.

@SvetoslavTsenov
Copy link

This issue also reflects when we run tns-core-modules unit tests on the CI. The problem is that we have let say 6 simulators and we use to pass --device SIMULATOR_ID to run the tests on a specific device but the result is that CLI fails to find this simulator.

@dtopuzov
Copy link
Contributor

Partially fixed by #3392.
Now CLI wee multiple simulators, but livesync and debug will still run only on one simulator due to the fact we use hard coded port for communication.

@rosen-vladimirov rosen-vladimirov changed the title Unable to run app on multiple iOS Simulators Work simultaneously with multiple iOS Simulators May 22, 2018
@rosen-vladimirov rosen-vladimirov added this to the 4.1.0 milestone May 30, 2018
@Natalia-Hristova
Copy link

This is available in the latest nativescript version 4.1.0 .
tns devices shows all running simulators and tns run ios runs an app on all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants