mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.77k stars 271 forks source link

🚏πŸ“₯πŸ™…β€β™€οΈ Signin command disabled on macOS 10.13+ #164

Open phatblat opened 6 years ago

phatblat commented 6 years ago

As of version 1.4.2 the signin command has been disabled on newer versions of macOS. This is an interim workaround to the crasher first identified in #107.

mas 1.4.2 was never released through Homebrew, so it must besownloaded and installed manually from the 1.4.2 release or built from source using Xcode.

😞 Situation

In macOS High Sierra (10.13) Apple removed the -[ISAccountService signInWithContext:replyBlock:] method from the StoreFoundation private Apple framework which this app relies on to authenticate users through the signin command. I have done a lot of digging and debugging but have not found another API that works to authenticate a user with the Mac App Store.

Users running older macOS versions (10.9-10.12) are unaffected.

πŸ‘‰πŸ»βŒ¨οΈ Workaround

Sign into the Mac App Store GUI app manually. Once signed in MAS app, the mas command should work fine.

I know this is not an ideal scenario, especially for script automation. Hopefully, I'll find a real solution to this soon.

Please πŸ‘ this issue if you are affected by it.

Related: #107, #129, #147, #155, #159, #160, #162

ghost commented 2 years ago

Things worked fine on 12.0 (32A344) which shipped on my M1 Max but once updated to 12.0.1 (21A559) is the same "not logged in" state

Same on MacBook Air M1 12.0.1 (21A559).

jimscard commented 2 years ago

Still the same on 2019 Intel MacBook macOS 12.0.1 (21A559); not logged in state reported by mas although the App Store GUI shows me logged in.

stephenulmer commented 2 years ago

After my upgrade to 12.0.1 it all broke again. Sigh.

luisriverag commented 2 years ago

Things worked fine on 12.0 (32A344) which shipped on my M1 Max but once updated to 12.0.1 (21A559) is the same "not logged in" state

2016 MBP here, GUI sign in workaround failing after update to 12.01 (21A559)

leowill01 commented 2 years ago

Unable to sign in with mas signin and also mas doesn't recognize signing in through App Store app.

mid-2017 MBP macOS Monterey 12.0.1 mas 1.8.3

chris-araman commented 2 years ago

For those reporting failures on macOS Monterey, you may be interested in https://github.com/mas-cli/mas/issues/417 instead of this issue, which dates back to High Sierra.

luisriverag commented 2 years ago

For those reporting failures on macOS Monterey, you may be interested in #417 instead of this issue, which dates back to High Sierra.

Thanks!

youbaowangsheng commented 2 years ago

Any update on this??

Augists commented 2 years ago

So, is there anyone who can tell me how to avoid this error 😭

The 'signin' command has been disabled on this macOS version. Please sign into the Mac App Store app manually.


macOS Monterey 12.0.1 mbp 19

4708696-UniGe commented 2 years ago

With lastest mas update works on Monterey

harapeko commented 2 years ago

it workedπŸ‘ MBP 2021 14inch M1 Pro macOS Monterey 12.2.1 mas 1.8.6

farhansaed commented 1 year ago

doesn't work for me on ventura 13.2 MBP Pro 2023 M2 mas 1.8.6