You need to have logged in and downloaded an app from the App Store using the same Apple ID you used with ipatool. It’s part of the Apple FairPlay DRM check and ipatool does not bypass this.
ipatool purchase -i <digits after .../id>
ipatool download -i ...To open an app downloaded this way, you must sign in with the Apple Account that purchased it, and some apps may fail to open like the Chrome browser: “The application “stable.app” can’t be opened.”
Also note that, https://support.apple.com/en-us/120468 says “iCloud features not available on a virtual machine” includes Apple Media Services, such as apps, so you won’t be able to sign in to the App Store and can’t open an app downloaded from ipatool in a VM.