snapshot/lib/snapshot/test_command_generator.rb in fastlane-2.24.0.beta.20170327010009 vs snapshot/lib/snapshot/test_command_generator.rb in fastlane-2.24.0.beta.20170328010037

- old
+ new

@@ -88,9 +88,12 @@ device ? device.udid : nil end def destination(device_name) + # on Mac we will always run on host machine, so should specify only platform + return ["-destination 'platform=macOS'"] if device_name =~ /^Mac/ + os = device_name =~ /^Apple TV/ ? "tvOS" : "iOS" os_version = Snapshot.config[:ios_version] || Snapshot::LatestOsVersion.version(os) device = find_device(device_name, os_version) if device.nil?