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

purchase doesn't work on macOS 10.15+ #289

Closed
ynp-repos opened this issue Jul 3, 2020 · 2 comments · Fixed by #556
Closed

purchase doesn't work on macOS 10.15+ #289

ynp-repos opened this issue Jul 3, 2020 · 2 comments · Fixed by #556

Comments

@ynp-repos
Copy link

Your Environment

  • mas version: 1.7.0

  • macOS version (system_profiler SPSoftwareDataType -detailLevel mini):
    System Software Overview:

    System Version: macOS 10.15.5 (19F101)
    Kernel Version: Darwin 19.5.0
    

mas Install Method

  • [] brew install mas (homebrew-core)

Describe the Bug

It seems that purchasing isn't working in Catalina. It's a brand new Macbook Pro 2020 with a fresh install of Homebrew and mas.

Every time I try to purchase an app, specifically apps that aren't free, after using TouchID to buy the app, I get a "Purchase of this item is not currently available" error from the App Store and the download fails. This has happened for multiple apps, most recently Tweetbot 3.3.3 (mas purchase 1384080005).

I can manually go to the app store and purchase it, but get this error when using mas.

I was able to download and install XCode and Microsoft ToDo (both free apps), but any app that is not free does not work.

To Reproduce

Steps to reproduce the behavior:

  1. Run mas purchase 1384080005 in terminal
  2. When prompted enter Apple ID credentials in Mac App Store.

Expected Behavior

I would expect the App Store to ask me for TouchID or Password to confirm the purchase, and then begin to download.

Actual Behavior

See screenshot below for error.

Screenshots, Terminal Output

Screen Shot 2020-07-03 at 6 01 58 PM

$ mas purchase 1384080005
...
@chris-araman
Copy link
Contributor

I can reproduce this on macOS 11.2.3 on an M1 MacBookPro.

@chris-araman chris-araman changed the title Purchasing doesn't work in Catalina 🐛 [BUG] 🐛 [BUG] Purchasing doesn't work on macOS 10.15 and later Sep 8, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
chris-araman added a commit that referenced this issue Nov 3, 2021
rcmdnk added a commit to rcmdnk/homebrew-file that referenced this issue Nov 10, 2021
@rgoldberg rgoldberg changed the title 🐛 [BUG] Purchasing doesn't work on macOS 10.15 and later purchase doesn't work on macOS 10.15+ Sep 15, 2024
@rgoldberg rgoldberg self-assigned this Sep 16, 2024
@rgoldberg rgoldberg added this to the 1.8.7 milestone Sep 16, 2024
@rgoldberg rgoldberg removed this from the 1.8.7 milestone Oct 6, 2024
@rgoldberg
Copy link
Contributor

rgoldberg commented Oct 6, 2024

@mas-cli/contributors It looks like mas purchase worked as advertised all along, it's just that people misunderstood its usage due to poor naming.

I think that mas purchase has alway only supported "purchasing" free apps. @ynp-repos couldn't download non-free apps, but was able to download free apps.

I think that, instead of reenabling mas purchase, we should modify mas install to automatically "purchase" unpurchased free apps when necessary. If we can figure out how to purchase non-free apps (I have a guess as to how that I'll try out later), then we should add a flag (maybe --purchase) to mas install. If someone tries to install a non-free app that wasn't previously purchased without including --purchase, we should output an error specifying the cost and the necessity to supply the --purchase flag.

To ensure that people don't spend more than they expect on an app, we could require user to specify a maximum cost they're willing to pay (like --purchase 10.00USD with a special unlimited value to specify no limit). We'd have to check how the store handles prices in different currencies. We would require that the specified currency match the currency expected by the MAS for the signed-in account for the purchase of the specified app.

See #557 & #558

rgoldberg added a commit to rgoldberg/mas that referenced this issue Oct 9, 2024
`purchase` seems to work on macOS 12+.

Resolve mas-cli#289

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
@rgoldberg rgoldberg added this to the 1.8.7 milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants