Class: FastlaneCore::Simulator

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane_core/device_manager.rb

Direct Known Subclasses

SimulatorTV, SimulatorWatch

Class Method Summary collapse

Class Method Details

.allObject



170
171
172
# File 'lib/fastlane_core/device_manager.rb', line 170

def all
  return DeviceManager.simulators('iOS')
end

.clear_cacheObject



186
187
188
# File 'lib/fastlane_core/device_manager.rb', line 186

def clear_cache
  @devices = nil
end

.reset(udid: nil, name: nil, os_version: nil) ⇒ Object

Reset simulator by UDID or name and OS version Latter is useful when combined with -destination option of xcodebuild



181
182
183
184
# File 'lib/fastlane_core/device_manager.rb', line 181

def reset(udid: nil, name: nil, os_version: nil)
  match = all.detect { |device| device.udid == udid || device.name == name && device.os_version == os_version }
  match.reset if match
end

.reset_allObject

Reset all simulators of this type



175
176
177
# File 'lib/fastlane_core/device_manager.rb', line 175

def reset_all
  all.each(&:reset)
end