Closed
Description
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.