Download app bundles from App Store to run on iOS Emulator on Mac
There's multiple points to address here:
1) The Appetize service is not an emulator. It allows you to run native mobile apps in the browser in order to provide apps demos, training, testing, etc. However it does so not by emulating the ARM CPU of an iOS device, but instead works by running the Intel version of said apps natively on an Intel CPU - while providing a "simulated" operating system that maps onto the browser.
2) The app bundle you need for the Appetize service is usually obtained by building the app for the Xcode Simulator. This requires you to have the source code for the app. If the app you want to run on the Appetize service is not open source, and you have not developed it yourself (or otherwise obtained the rights for the source code) - you cannot use this method.
3) The apps you download from the App Store are meant for execution on ARM CPUs. They cannot be directly used with the Appetize service, as that requires Intel executables. However, if you do want to obtain the files, it is possible (contrary to the other answers to your question). The easiest way of doing this is to use iTunes to access the App Store and download the apps, which are then accesssible on your local disk drive. This requires you to use either iTunes 12.6.3 (or older) or one of the other solutions described here:
How do I download an iOS App (IPA) file to my Mac after iTunes 12.7 update?
4) Very recent development has shown that it is indeed in some cases possible to translate an app built for the ARM CPU for the App Store into an app built for the Intel CPU meant for the Xcode Simulator (or the Appetize service). This is done by exploiting the fact that Apple these days requires app submissions to include bitcode. You can read more about that here:
https://www.highcaffeinecontent.com/blog/20190518-Translating-an-ARM-iOS-App-to-Intel-macOS-Using-Bitcode
5) The most practical way of achieving your goal of running the eWeLink app on your Mac in order to control light switches is to run the Android version of the app through an Android environment for the Mac, such as for example BlueStacks.
I am software developer and develop apps for iOS.
I want to run an iOS app on an emulator on my Mac
There is no iOS emulator in existence. There's an iOS simulator, available only for macOS.
In order to do that, I have to get the app as a a .zip or .tar.gz file containing the compressed .app bundle. How do I get that .app bundle?
There is no way to get an iOS .app bundle. iOS apps can (generally) be installed only on your iPhone, available only from the App Store app pre-installed on your iPhone.
When I go to App Store, it just wants to download directly to my iPhone. The app is available, but I want the bundle.
The only way you can run an app available on the App Store is on an iOS device.
The iOS Simulator is available along-with Xcode (developer tool to develop apps for various Apple hardware devices). You can build and run an app in iOS simulator only if you have access to the source code for the app (generally personal or open-source projects).
It is not possible to obtain code/app bundle for an arbitrary app available on the App Store and run it on iOS simulator.
Note, I'm not a developer. That said I believe that the only way you are going to run anything in the Xcode Simulator is if it belongs to you.
The way I understand it the Simulator is not a VM (like Virtualbox, Parallels or VMWare) to run any iOS app on your Mac. Rather it is a troubleshooting/development tool to allow you to work on software that you wrote yourself before you install it on your iOS device of choice.
Not possible.
Appetize.io is not an emulator. It is a service which provides an interactive video stream of iOS Simulator running on a macOS system. iOS Simulator is a part of the Xcode development tools, and can be downloaded for free to run on any macOS system.
The iOS Simulator is also not an emulator. It is an application which runs on macOS and runs iOS application bundles which have been compiled by a developer to run under the Simulator environment. These application bundles contain x86 code, instead of the ARM code that is typical for an iOS application. iOS applications downloaded from the App Store do not contain x86 code, so they cannot be run under the Simulator.