-
Notifications
You must be signed in to change notification settings - Fork 274
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
Simulator runtimes not found. java.lang.NullPointerException: list must not be null #1850
Comments
Same issue here. |
Hey @filipef101 and @YonatanSegura97, can you share what Java version are you on? |
Do you mean exactly this path? Because it doesn't exist, actually (at least on my machine). The right path where iOS simulator runtimes are is:
|
should be resolved by #1858, not released yet |
Yeah, that exists |
❯ java --version |
Hey Filipe, this shouldn't happen anymore in the latest version. Please let me know :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. |
Is there an existing issue for this?
Steps to reproduce
Not clear how to reproduce, could be related to a new way xcode manages/installs runtimes.
Actual results
Expected results
no error
About app
not relevant
About environment
Logs
Logs
❯ curl -Ls "https://get.maestro.mobile.dev/" | bash * Create distribution directories... * Downloading... ######################################################################## 100.0% * Checking archive integrity... * Extracting archive... * Copying archive contents... * Cleaning up...Installation was successful!
Please open a new terminal OR run the following in the existing one:
Then run the following command:
Welcome to Maestro!
❯ which maestro
/Users/filipe/.maestro/bin/maestro
❯ maestro
Exception in thread "main" java.lang.NullPointerException: list must not be null
at maestro.cli.util.IOSEnvUtils.getSimulatorRuntimes(IOSEnvUtils.kt:19)
at maestro.cli.analytics.Analytics.maybeUploadAnalyticsAsync(Analytics.kt:147)
at maestro.cli.AppKt.main(App.kt:99)
rm -rf ~/.maestro
rm -rf ~/.local/state/maestro
brew tap mobile-dev-inc/tap
brew install maestro
❯ maestro
Maestro CLI would like to collect anonymous usage data to improve the product.
Enable analytics? [Y/n] Y
Usage data collection enabled. Thank you!
Exception in thread "main" java.lang.NullPointerException: list must not be null
at maestro.cli.util.IOSEnvUtils.getSimulatorRuntimes(IOSEnvUtils.kt:19)
at maestro.cli.analytics.Analytics.maybeUploadAnalyticsAsync(Analytics.kt:147)
at maestro.cli.AppKt.main(App.kt:99)
❯ maestro --version
Exception in thread "main" java.lang.NullPointerException: list must not be null
at maestro.cli.util.IOSEnvUtils.getSimulatorRuntimes(IOSEnvUtils.kt:19)
at maestro.cli.analytics.Analytics.maybeUploadAnalyticsAsync(Analytics.kt:147)
at maestro.cli.AppKt.main(App.kt:99)
❯ which maestro
/opt/homebrew/bin/maestro
Maestro version
1.37.4
How did you install Maestro?
Homebrew
Anything else?
Slack thread https://mobile-dev-inc.slack.com/archives/C041FU72T54/p1722335707236339
After updating to latest version, Maestro is unable to access simulator runtimes, resulting in a NullPointerException. This occurs even when trying to check the Maestro version 🤯
/Library/Developer/CoreSimulator/Profiles/Runtimes
Is empty
Under user folder there is a "runtimeMap"
/Users/<myusername>/Library/Developer/CoreSimulator/RuntimeMap.plist
Could be something with xcode beta 16
Using
sudo maestro
worksThe text was updated successfully, but these errors were encountered: