I used suggested by @liubin-acn way to reinstall app in the simulator, but starting from run_loop version 4 it doesn't work anymore. It removes app and after references to plist of the app that is not there and fails with exception RuntimeError: plist '/Users/path_to_app_on_simulator/Info.plist' does not exist - could not read
# Reset Simulator Content and Settings
device = RunLoop::Device.device_with_identifier("< UDID of Simulator >")
RunLoop::CoreSimulator.erase(device)
# Uninstall with CoreSimulator
device = RunLoop::Device.device_with_identifier("< UDID of Simulator >")
app = RunLoop::App.new("path/to/Your.app")
core_sim = RunLoop::CoreSimulator.new(device, app)
core_sim.uninstall_app_and_sandbox