The application under test with bundle id '*.*.*' is not running, possibly crashed

I initialize the driver with capabilities.setCapability(“bundleId”, “com.apple.AppStore”) to download the app and open it. After that, I don’t interact with the AppStore, but in the process of testing the downloaded application, the error “The application under test with bundle id ‘com.apple.AppStore’ is not running, possibly crashed” may occur. How can I change application under test during one session?