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

[snapshot] added 10 second timeout to wait for device to fully boot before overriding status bar (adjust by setting SNAPSHOT_SIMULATOR_WAIT_FOR_BOOT_TIMEOUT environment variable) #19380

Merged

Conversation

joshdholtz
Copy link
Member

Motivation and Context

Follow up to #19344. Turns out that this mostly works but not fully. The "Booted" status can still show while the simulator is booting (Apple logo showing). This "Booting" status doesn't allow the status bar to be overridden.

Description

Adds a sleep after trying to boot the simulator to make sure device is fully operational before attempting to set the status bar. Can be adjusted using the SNAPSHOT_SIMULATOR_WAIT_FOR_BOOT_TIMEOUT environemtn variable. Defaults to 10 seconds.

Testing Steps

Update Gemfile and run bundle install, bundle update fastlane, or bundle update

gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "joshdholtz-snapshot-override-status-bar-sim-boot-timeout"

…efore overriding status bar (adjust by setting SNAPSHOT_SIMULATOR_WAIT_FOR_BOOT_TIMEOUT environment variable)
@google-cla google-cla bot added the cla: yes label Sep 24, 2021
@joshdholtz joshdholtz merged commit 403e5e3 into master Sep 24, 2021
@joshdholtz joshdholtz deleted the joshdholtz-snapshot-override-status-bar-sim-boot-timeout branch September 24, 2021 20:27
Copy link

@fastlane-bot fastlane-bot left a comment

Choose a reason for hiding this comment

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

Congratulations! 🎉 This was released as part of fastlane 2.195.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants