To install app via the xcrun command we need to start the simulator first. Launch Xcode and launch the simulator by clicking Xcode > Open Developer Tool > Simulator.
Once the simulator is booted and running, start the terminal and run the command xcrun simctl install booted path_to_the_app/TestApp.app as shown. If the command is successful, it will return the prompt.