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

Remove useless simulator check in parseXctraceIOSDevicesList #1786

Closed
wants to merge 2 commits into from

Conversation

simonkoeck
Copy link

Summary:

I was just sitting 4h in front of the computer debugging why my metro bundler couldn't find the device. :D

Although the xcrun xctrace list devices returned me all the correct devices.

== Devices ==
Pauls & Simons Mac (*****)
iPhone von Simon (15.4.1) (****)

Right before that I uninstalled all my simulators. Now because of the simulator check, the function returned an empty array.

@adamTrz
Copy link
Collaborator

adamTrz commented Jan 15, 2023

Thank's for the PR @simonkoeck
Looks like super edge case having deleted all your simulators, but don't see it would brake anything 😉

Edit: Please fix failing tests as well :)

@simonkoeck
Copy link
Author

Fixed :)

@adamTrz
Copy link
Collaborator

adamTrz commented Jan 15, 2023

One question @simonkoeck - what would happen if there're also no physical devices connected?

@simonkoeck
Copy link
Author

One question @simonkoeck - what would happen if there're also no physical devices connected?

The function would still return the correct simulators. Only if no simulators and no devices are connected, the function returns an empty array

@adamTrz
Copy link
Collaborator

adamTrz commented Jan 15, 2023

One question @simonkoeck - what would happen if there're also no physical devices connected?

The function would still return the correct simulators. Only if no simulators and no devices are connected, the function returns an empty array

Yeah yeah, I know that 😉
Sorry, not being more precise, what would happen for whole run-ios command? Since we don't have any devices nor simulators available it would definitely fail, but where? Could you test it please?

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.

2 participants