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

Reintroduce tvOS as valid simulator version when matching for simulators #1929

Conversation

Killavus
Copy link
Contributor

@Killavus Killavus commented May 5, 2023

Summary:

This pull request should close issue #1927. It was caused by being too rigid when it comes to filtering out versions while searching for a valid simulator. This PR reintroduces tvOS as a valid version on this code path. @adamTrz is there a reason why it has been removed in the first place?

Test Plan:

  1. Go to No longer possible to use the CLI to launch an app on Apple TV #1927 and follow the repro steps. Run the yarn ios command with --simulator set as Apple TV.
  2. Create a new React Native project and try to run non-tvOS simulator - yarn ios --simulator "iPhone 14 Pro" or not specific simulator at all yarn ios. It should still run.

@Killavus Killavus requested review from adamTrz and thymikee as code owners May 5, 2023 01:11
@douglowder
Copy link
Member

@Killavus thanks very much for this! Does your fix succeed without reintroducing the bug in #1823 ?

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.

Thanks @Killavus for contribution! 🎉

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

👍🏼 @Killavus mind adding a test verifying this behavior?

@Killavus
Copy link
Contributor Author

Killavus commented May 5, 2023

👍🏼 @Killavus mind adding a test verifying this behavior?

Will do! Need to figure out how we handle such regression tests though in the test suite :).

@thymikee
Copy link
Member

thymikee commented May 5, 2023

@Killavus
Copy link
Contributor Author

Killavus commented May 8, 2023

We could bring back this test case: https://github.com/react-native-community/cli/pull/1823/files#diff-27e264720294944fa63844f5cb36f8eeb5c6575176725a4823f80189fcb3020fL891

Done 🚀 !

@adamTrz adamTrz merged commit 14f2fb7 into react-native-community:main May 19, 2023
@douglowder
Copy link
Member

@thymikee @adamTrz would it be possible to cherry-pick this for 9.x, and bump the release? This would resolve the issue for RN TV 0.71.

@thymikee
Copy link
Member

@douglowder sure, I think that's doable. However, is it the 9.x? Because RN 0.71 is tied to CLI v10.x.

@douglowder
Copy link
Member

Oops sorry, yes that would be 10.x, thanks :)

thymikee pushed a commit that referenced this pull request Jun 15, 2023
…ors (#1929)

* reintroduce tvOS as valid target when matching simulators

* reintroduce matching of Apple TV devices test
@thymikee
Copy link
Member

@douglowder #1969

thymikee added a commit that referenced this pull request Jun 16, 2023
…ors (#1929) (#1969)

* reintroduce tvOS as valid target when matching simulators

* reintroduce matching of Apple TV devices test

Co-authored-by: Marcin Grzywaczewski <killavus@gmail.com>
@thymikee
Copy link
Member

@douglowder released in 10.2.5

douglowder added a commit to react-native-tvos/react-native-tvos that referenced this pull request Jun 19, 2023
douglowder added a commit to react-native-tvos/react-native-tvos that referenced this pull request Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants