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

chore: add help text to assist when no Simulators are available #237

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

hansemannn
Copy link
Contributor

Xcode does not auto-create Simulators anymore. Before a long-term solution is added (fetch sims, fetch runtimes, create and link sim), this will resolve all user questions regarding this question already. I am not even sure if we should auto-create them at all, as Xcode offers the perfect UI to list, preview, create and link Simulators already.

@cb1kenobi
Copy link
Contributor

I am dying to see this Xcode Simulator UI.

In later ioslib versions, I added a CLI that has a "reset-sims" command that creates all of the sims for a specific Xcode version: https://github.com/tidev/ioslib/blob/master/bin/ioslib#L265-L316. Maybe we want to leverage that?

@@ -771,11 +771,13 @@ function findSimulators(options, callback) {
}

if (!simHandle) {
const helpText = '\n\nPlease open Xcode, navigate to "Window > Devices and Simulators" and create a new Simulator with your preferred configuration.';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to check the Xcode version and only show this additional help for Xcode 15?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If no Simulator is available, this can also mean that a Simulator was deleted or corrupted (even in earlier Xcode versions). That way, we can show this message for all cases where a Simular does not exist.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, good point!

@cb1kenobi cb1kenobi merged commit f14ed2c into 1_7_X Sep 28, 2023
1 check passed
@hansemannn
Copy link
Contributor Author

Regarding auto-generating Simulators: I would try to not to do that, as it will take away disk space while users don't even need more Simulators. For me personally, I always use one (maximum two if iPad as well) Simulators, so more Simulators would just take extra space. That was probably also the reason why Apple stopped auto-generating them in the first place. Slim like a pancake! 🥞

@hansemannn hansemannn deleted the improvement/help-text branch September 28, 2023 12:49
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