scan/lib/scan/detect_values.rb in fastlane_hotfix-2.165.1 vs scan/lib/scan/detect_values.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -160,11 +160,14 @@ end end filter_simulators(simulators, :equal, version).tap(&potential_emptiness_error).select(&selector) end ).tap do |array| - UI.error("Ignoring '#{device_string}', couldn’t find matching simulator") if array.empty? + if array.empty? + UI.test_failure!("No device found with name '#{device_string}'") if Scan.config[:ensure_devices_found] + UI.error("Ignoring '#{device_string}', couldn’t find matching simulator") + end end end set_of_simulators.to_a end @@ -207,10 +210,12 @@ UI.important("because I trust you know what you're doing...") return end # building up the destination now - if Scan.devices && Scan.devices.count > 0 + if Scan.building_mac_catalyst_for_mac? + Scan.config[:destination] = ["platform=macOS,variant=Mac Catalyst"] + elsif Scan.devices && Scan.devices.count > 0 Scan.config[:destination] = Scan.devices.map { |d| "platform=#{d.os_type} Simulator,id=#{d.udid}" } elsif Scan.project.mac_app? Scan.config[:destination] = min_xcode8? ? ["platform=macOS"] : ["platform=OS X"] end end