Skip to content

Conversation

@adamTrz
Copy link
Collaborator

@adamTrz adamTrz commented Feb 7, 2023

Summary:

Switched from xcrun xctrace list devices to xcrun xcdevice list when gathering info about available iOS devices and simulators.
Previous one wasn't providing enough information to distinguish between AppleTV / macOS / iPhone devices leading to unexpected behaviours.

Fixes #1816
Fixes #1807
Closes #1786

Test Plan:

Connect as many Apple devices as possible and:

  • try to run run-ios - it should try to launch RN App on all valid devices and simulators
  • try to run run-ios --list-devices - it should list all valid devices (even not available ones) and simulators

image

@adamTrz adamTrz requested a review from thymikee as a code owner February 7, 2023 10:48
@github-actions github-actions bot added the bugfix label Feb 7, 2023
Copy link
Collaborator

@szymonrybczak szymonrybczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect work @adamTrz! 🙌

@adamTrz adamTrz force-pushed the fix-list-ios-devices branch from 40027ba to 6dcd752 Compare February 7, 2023 15:15
@thymikee
Copy link
Member

thymikee commented Feb 8, 2023

Can you check if xcrun xcdevice is available on last 2 or 3 versions of Xcode?

@adamTrz
Copy link
Collaborator Author

adamTrz commented Feb 8, 2023

Can you check if xcrun xcdevice is available on last 2 or 3 versions of Xcode?

It's working on xCode 12 and 13, couldn't get my hands on lower versions yet ...

@thymikee
Copy link
Member

thymikee commented Feb 8, 2023

Awesome! That's more than enough I think :D

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How does react-native run-ios determine the arguments when invoking xcodebuild? iOS CLI Run Fails with Incorrect Device ID in 10.1.x

3 participants