lib/run_loop/device.rb in run_loop-2.6.4 vs lib/run_loop/device.rb in run_loop-2.6.5

- old
+ new

@@ -748,10 +748,14 @@ end # @!visibility private def simulator_running_system_app_pids base_dir = xcode.developer_dir - sim_apps_dir = "Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications" + if xcode.version_gte_90? + sim_apps_dir = "Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications" + else + sim_apps_dir = "Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications" + end path = File.expand_path(File.join(base_dir, sim_apps_dir)) RunLoop::ProcessWaiter.pgrep_f(path) end end end