From 7b408e3707a7968421d2d7e6389b1dc13df83db2 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Wed, 26 Jun 2024 11:31:34 +0100 Subject: [PATCH] Fix issue when we find tvOS sim instead of iOS one --- fastlane/Fastfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 3fca8ee6bb3..fd0eedb0978 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -767,7 +767,9 @@ end lane :install_runtime do |options| runtimes = `xcrun simctl runtime list -j` UI.message("👉 Runtime list:\n#{runtimes}") - simulators = JSON.parse(runtimes).select { |_, r|x sim['version'] == options[:ios] && r['state'] == 'Ready' } + simulators = JSON.parse(runtimes).select do |_, sim| + sim['platformIdentifier'].end_with?('iphonesimulator') && sim['version'] == options[:ios] && sim['state'] == 'Ready' + end if simulators.empty? Dir.chdir('..') do