From d4007fd51a3542eec1e9da628efe5f4857dd5792 Mon Sep 17 00:00:00 2001 From: Nemanja Risteski Date: Tue, 17 Dec 2024 16:57:05 -0500 Subject: [PATCH] kill emulator at the end of process --- .../actions/maestro_orchestration_ios_action.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/fastlane/plugin/maestro_orchestration/actions/maestro_orchestration_ios_action.rb b/lib/fastlane/plugin/maestro_orchestration/actions/maestro_orchestration_ios_action.rb index 1fa2793..410e038 100644 --- a/lib/fastlane/plugin/maestro_orchestration/actions/maestro_orchestration_ios_action.rb +++ b/lib/fastlane/plugin/maestro_orchestration/actions/maestro_orchestration_ios_action.rb @@ -22,6 +22,10 @@ def self.run(params) UI.message("Running Maestro tests on iOS...") `maestro test #{params[:maestro_flow_file]}` UI.success("Finished Maestro tests on iOS.") + + UI.message("Killing iOS simulator...") + system("xcrun simctl shutdown booted") + UI.success("iOS simulator killed. Process finished.") end def self.boot_ios_simulator(params)