Skip to content

Commit

Permalink
Fix issue when we find tvOS sim instead of iOS one
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Jun 26, 2024
1 parent 06d8bdd commit 7b408e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b408e3

Please sign in to comment.