I don't know where the settings were set incorrectly. Unable to install and use applications in preview and virtual machines. I have tried many online methods but have not been able to solve it. It seems that the compiled app file cannot be found. The folder structure of Build is as follows:
Build
- Intermediates.noindex
- Products
-
- Debug-iphonesimulator
-
- Debug-watchsimulator
Thank you all for your assistance.