renative icon indicating copy to clipboard operation
renative copied to clipboard

[tvOS] rnv duplicates devices

Open pauliusguzas opened this issue 1 year ago • 2 comments

Describe the bug rnv duplicates tvos devices

To Reproduce

  1. go to template-starter
  2. have tvos device connected
  3. do npx rnv run -p tvos -d -> rnv shows same device twice

Expected behavior same device should be shown once

Screenshots or copy&paste

[ task ] <= [run] <= configure
[ task ] [run] getIosDeviceToRunOn[1]
[ task ] [run] getAppleDevices[1] ignoreDevices:false ignoreSimulators:true
✔ Executing: xcrun simctl list --json
[ warn ] [run] Could not find device Apple TV
? Select the device you want to launch on (Use arrow keys)
❯ Apple TV 4K (3) | TV 📺 | v: 16.6 | udid: fffe0:89:7e:64:d3:6ffff (device)
  Apple TV 4K (3) | TV 📺 | v: 16.6 | udid: addfcc35fc6fd800c67ce1ff49e48a85c206
a474 (device)

Desktop (please complete the following information):

  • OS: macOS Ventura
  • Node Version 18.14.2
  • RNV Version 1.0.0-rc.3
  • rnv/template-starter Version 1.0.0-rc.3

pauliusguzas avatar Dec 19 '23 07:12 pauliusguzas

@GabrieleKaceviciute are you able to replicate this? If so, can we have a pair session tomorrow to check it together? I can't seem to be able to replicate it

mihaiblaga89 avatar Dec 27 '23 20:12 mihaiblaga89

1.0.0-rc.9 NOTE: I noticed that if I open settings -> remotes and devices -> remote App and devices on TV, then rnv target list shows two devices (dublicate), if I close this settings window on TV -> rnv shows only one device

$ npx rnv target list -p tvos - Done! 🚀
┌──────────────────────────────────────────────────────────────────────────────┐
│  🚀  SUMMARY | 1/23/2024, 11:12:25 AM                                        │
│  $ npx rnv target list -p tvos                                               │
├──────────────────────────────────────────────────────────────────────────────┤
│  ReNative Version: 1.0.0-rc.9                                                │
│  Project Name ($package.name): @rnv/template-starter                         │
│  Project Version ($package.version): 1.0.0-rc.9                              │
│  Workspace ($.workspaceID): rnv                                              │
│  Platform (-p): tvos                                                         │
│  Engine ($.platforms.tvos.engine): engine-core                               │
│  App Config (-c): template                                                   │
│  Build Scheme (-s): debug                                                    │
│  Env Info: darwin | x64 | node v18.19.0                                      │
│  Executed Time: 0h:0m:0s:355ms                                               │
│                                                                              │
│
tvos Targets:

 [1]> Office tvOS | TV 📺 | v: 16.5 | udid: fffe0:89:7e:62:0e:5dfff (device)
 [2]> Office tvOS | TV 📺 | v: 16.5 | udid: ffc8d3c7b9cffe4e3b057607030a3fc6b61d0b59 (device)
                                                                            │
└──────────────────────────────────────────────────────────────────────────────┘
➜  ~/Desktop/renative/packages/template-starter git:(24b5b363e)

all CLI log -> output.txt

GabrieleKaceviciute avatar Jan 23 '24 09:01 GabrieleKaceviciute