lib/scan/detect_values.rb in scan-0.14.0 vs lib/scan/detect_values.rb in scan-0.14.1

- old
+ new

@@ -170,10 +170,10 @@ UI.important("because I trust you know what you're doing...") return end # building up the destination now - if Scan.devices.count > 0 + if Scan.devices && Scan.devices.count > 0 Scan.config[:destination] = Scan.devices.map { |d| "platform=#{d.os_type} Simulator,id=#{d.udid}" } else Scan.config[:destination] = min_xcode8? ? ["platform=macOS"] : ["platform=OS X"] end end