You need a simulator for your Xcode UI tests that is not available on the stack that you are using. For example, you wish to run a simulator for an older iOS version.
Add the following code in a Script Step (replace 'iOS 13' with the version you need):
gem install xcode-install
xcversion simulators --install='iOS 13'