grahampugh / erase-install

A script that automates downloading macOS installers, and optionally erasing or upgrading macOS in a single process. Watch the video!
https://grahamrpugh.com/2023/05/14/macaduk-presentation-eraseinstall.html
Apache License 2.0
836 stars 131 forks source link

No Swift Dialog boxes on Intel Devices #368

Closed harinathreddys401 closed 1 year ago

harinathreddys401 commented 1 year ago

Describe the bug When running Eraseinstall-29.0 on intel devices it is downloading and upgrading the macOS but not getting any GUI related Swift dialog boxes showing about download and preparation status etc.. I have testing this on 3 intel devices running on Monterey 12.6.3 and was trying to update to Ventura 13.2.1

To Reproduce

Expected behavior It should provide Swift Dialog boxes to the user currently what's going on with the update.

Code/log output

2023-02-24 13:24:13  [erase-install] v29.0 script execution started: Fri Feb 24 13:24:13 GMT 2023
2023-02-24 13:24:13  [erase-install] System version: 12.6.3 (Build: 21G419)
2023-02-24 13:24:13  [erase-install] Making working directory at /Library/Management/erase-install
2023-02-24 13:24:13  [erase-install] Making log directory at /Library/Management/erase-install/log
2023-02-24 13:24:13  [check_for_dialog_app] Downloading dialog...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4086k  100 4086k    0     0  3877k      0  0:00:01  0:00:01 --:--:-- 6228k
installer: Package name is dialog
installer: Installing at base path /
installer: The install was successful.
2023-02-24 13:24:16  [check_for_dialog_app] dialog is installed
2023-02-24 13:24:16  [check_for_dialog_app] Sending to dialog: quit:
2023-02-24 13:24:16  [erase-install] Caffeinating this script (pid=28375)
2023-02-24 13:24:16  [check_free_space] OK - 371 GB free/purgeable disk space detected
2023-02-24 13:24:16  [erase-install] Looking for existing installer app or pkg
2023-02-24 13:24:16  [find_existing_installer] Installer found at /Applications/Install macOS Ventura.app.
2023-02-24 13:24:16  [check_installer_is_valid] Checking validity of /Applications/Install macOS Ventura.app.
2023-02-24 13:24:16  [check_installer_is_valid] Mounting /Applications/Install macOS Ventura.app/Contents/SharedSupport/SharedSupport.dmg
2023-02-24 13:24:17  [check_installer_is_valid] Using Build value from com_apple_MobileAsset_MacSoftwareUpdate.xml
Volume Shared Support on disk2s2 force-unmounted
2023-02-24 13:24:18  [compare_build_versions] Comparing (1) 21G419 with (2) 22A400
2023-02-24 13:24:18  [check_installer_is_valid] Installer: 22A400 >= System: 21G419 : valid build.
2023-02-24 13:24:18  [erase-install] Checking for newer installer
2023-02-24 13:24:18  [check_for_mist] Downloading mist-cli...

Screenshots Not Applicable

Environment (please complete the following information):

Additional context Add any other context about the problem here.

mrmte commented 1 year ago

im seeing the same thing

Uggbert commented 1 year ago

confirmed same here, Intel with T2 chip. logs showing the erase install process is running as expected but there are no displays/prompts for the user.

rougegoat commented 1 year ago

Same with a 2017 MacBook Pro but only on macOS 12. macOS 11 and 13 worked without issues.

Interestingly enough, it seemed the issue went further than just erase-install. I wasn't able to get any swiftDialog windows with user interaction on them to open after attempting to upgrade with erase-install.

Uggbert commented 1 year ago

forgot to mention mine was running 13.2.1

grahampugh commented 1 year ago

I can reproduce the issue in an Intel VM running Monterey. Looking into it now.

grahampugh commented 1 year ago

It does seem that dialog does not open if there is a log file in place (or maybe if there are specific commands in the log). Even manually running /usr/local/bin/dialog --title Test --message "Hello World" does not work if the log file is in place. So, I'll add a line to remove the log file at the beginning and end of the erase-install run.

grahampugh commented 1 year ago

Please test https://github.com/grahampugh/erase-install/releases/tag/v29.1 which should fix this.

rougegoat commented 1 year ago

Verified that v29.1 resolves this issue on my test Intel machine.

harinathreddys401 commented 1 year ago

I can confirm 29.1 release fixed this issue.. Thank you for the update grahampugh...