flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.8k stars 180 forks source link

[tvOS] rnv duplicates devices #1305

Open pauliusguzas opened 9 months ago

pauliusguzas commented 9 months ago

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):

mihaiblaga89 commented 8 months ago

@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

GabrieleKaceviciute commented 7 months ago

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