mas-cli / mas

:package: Mac App Store command line interface
MIT License
10.83k stars 273 forks source link

Support iPadOS & iOS apps #321

Open dbrookman opened 3 years ago

dbrookman commented 3 years ago

Your Environment

mas Install Method

Describe the Bug

mas list, mas search, mas outdated do not show iOS apps that can be installed via the App Store on M1 macs.

To Reproduce

Steps to reproduce the behavior:

  1. Install an iOS app via the App Store.
  2. Run mas list

    Expected Behavior

The installed iOS app should be among the apps listed.

Actual Behavior

The iOS app is not among the apps listed.

phatblat commented 3 years ago

The is a great idea for a new feature. I had to send my DTK back, but while I had it I only installed iOS app through Xcode. Can you install them from the Mac App Store?

dbrookman commented 3 years ago

Yeah, you install them from the mac App Store. When you search you're presented with the option to see iOS apps that you can install.

Screen Shot 2021-03-21 at 11 22 57 AM
phatblat commented 3 years ago

One thing that will need to change to support this is to change how the search and lookup commands work. Today they use the iTunes search web API and that has a filter for only macOS. Once we know the app identifier it may "just work".

One thing you could try is to copy the URL for an iOS app from the store and look for the numeric identifier at the end (remove any letters). Then try mas install 1234 with that ID.

dbrookman commented 3 years ago

You're right, you can get the ID from the App Store website URL. I specifically tried Desert Golfing (ID: 902062673)

mas info 902062673 works, returning:

Desert Golfing 1.22 [1.99]
By: Captain Games Inc.
Released: 2017-12-05
Minimum OS: 9.0
Size: 2.2 MB
From: https://apps.apple.com/us/app/desert-golfing/id902062673?uo=4

mas install 902062673 brings up the following dialog:

Screen Shot 2021-03-22 at 10 55 41 PM

I suspect the Minimum OS mismatch might be the issue here. Clicking "Download Last Compatible" returns:

==> Downloading Desert Golfing
Error: Download failed: The installation could not be started.

Clicking "Cancel" (rather obviously) returns:

Error: Download request failed: User selected cancel button

Just to be sure, I double checked, and it installs from the App Store fine.

iMonZ commented 2 years ago

Would be so excited if this would be fixed!!!

natterstefan commented 1 year ago

Me too!

jeeftor commented 4 months ago

Is this being worked on or nay?

chkpwd commented 3 weeks ago

Pinging here to show support as well.