Output installation progress, installation spinner, or warning that installation progress is not available
Configuration
mas ▁▁▁▁ 4.1.0
arch ▁▁▁ x86_64
from ▁▁▁ homebrew/core/mas
origin ▁ https://github.com/mas-cli/mas.git
rev ▁▁▁▁ 4fa8f4c1f5f2ae7e9a554451621d054bba0c7057
swift ▁▁ 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
driver ▁ 1.115.1
region ▁ US
macos ▁▁ 15.7.2 (24G325)
mac ▁▁▁▁ Macmini8,1
cpu ▁▁▁▁ Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
Bug description
I’m trying to download Xcode using mas, but for some reason the installation process doesn’t start after the download is completed. Using the App Store works fine, and Xcode installs properly
Steps to reproduce
sudo mas install 497799835
Using Activity Monitor, I was able to verify that the download process is consuming some resources
At this step, it just hangs, and there is no installd process activity, like it was when I used AppStore
The likelihood is that it was installing, but taking too long. The new versions of mas do not output an installation progress bar because of a workaround for Apple securing installd in macOS 26.1, 15.7.2 & 14.8.2.
I will try to make an installation animation, without progress, in the future. I just didn't have the time to do it already.
I will probably output a warning message saying that there is no installation progress indicator, if I can't make a nice animation soon.
If you ever have a long-lived install in the future, please let it run longer.
So you want to say that Xcode has been installed for almost 3 hours in a row?) While using the App Store it takes about 10 minutes
Your initial post didn't indicate that you had waited 3 hours for the install to finish.
I will output a note that install progress isn't available.
I don't have an extra Mac on which to test installing Xcode. I haven't ever setup virtual machines, and don't have the bandwidth to start doing so now.
If multiple people have problems installing Xcode, or other large apps, the easiest course of action now is to refuse to install apps that are known to not finish installing, unless --force is provided. It could be done via an ADAM ID blacklist, or by a maximum size (either from the iTunes Search web API or from the download itself, which can be canceled if the reported file size is too large), etc.
The installd lockdown has been a massive headache for everyone.
Will output improved install/update progress info via #1123.
Chiming in with another data point: I had this problem as well, just this morning. I waited an hour for Xcode to install. There was no activity within /var/log/install.log during the entire time as well.
$ mas config
mas ▁▁▁▁ 4.1.0
arch ▁▁▁ arm64
from ▁▁▁ MacPorts
origin ▁ https://github.com/mas-cli/mas.git
rev ▁▁▁▁ 4fa8f4c
swift ▁▁ 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
driver ▁ 1.120.5
region ▁ US
macos ▁▁ 15.7.3 (24G419)
mac ▁▁▁▁ Mac16,5
cpu ▁▁▁▁ Apple M4 Max
Has anyone had a similar problem with anything other than Xcode?
4.1.1 will probably be released tonight with a lot of fixes, especially for install & update. None are specifically for this issue, but please try 4.1.1 once it becomes available.
@dcamper @menvol3
Can you uninstall existing mas versions from your Mac:
brew uninstall --force mas
sudo trash /usr/local/opt/mas /usr/local/bin/mas
which mas
Uninstall Xcode.
Then install mas 4.1.1 using the pkg installer for your CPU architecture from the GitHub 4.1.1 release, then try again to install Xcode, then report the results?
There have been many issues with mas executables built with a Swift compiler older than 6.2 (i.e. with Xcode < 26), which is the case for both of your mas installations.
The mas binaries from GitHub Releases, however, were both built using Xcode 26. The GitHub Releases executables fix the other issues, and might fix this issue.
The solution for those issues (& possibly for this issue) will be to require Xcode 26 to build mas.
I'm having the same issue. I installed mas 4.1.1 from the GitHub Release as opposed to Homebrew. I gave up and killed the installer after 30 minutes and used the App Store instead.
$ mas config
mas ▁▁▁▁ 4.1.1
slice ▁▁ arm64
slices ▁ arm64
dist ▁▁▁ unknown
origin ▁ https://github.com/mas-cli/mas
rev ▁▁▁▁ dac9fc222fe4c9a3a14a073f8ecbf93279568a74
swift ▁▁ 6.2 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
driver ▁ 1.127.14.1
store ▁▁ US
region ▁ US
macos ▁▁ 26.2 (25C56)
mac ▁▁▁▁ Mac16,5
cpu ▁▁▁▁ Apple M4 Max
arch ▁▁▁ arm64
@Anaxagoras-bc Thanks for the info.
This issue is thus not caused by the Xcode 16 problems.
I'll need to investigate. I might need to start using a virtual machine to test.
I found & fixed 2 issues in the code. Xcode installs on my Mac. About to merge a PR.
Xcode 16.2 has a bug where it cannot properly build valid Swift code in the PR. The PR will be delayed until 5.0.0, which will require Xcode 26+, and which will be released soon after 4.1.2.