Class: FastlaneCore::Simulator::Device
- Inherits:
-
Object
- Object
- FastlaneCore::Simulator::Device
- Defined in:
- lib/fastlane_core/simulator.rb
Overview
Use the UDID for the given device when setting the destination Why? Because we might get this error message > The requested device could not be found because multiple devices matched the request.
This happens when you have multiple simulators for a given device type / iOS combination
{ platform:iOS Simulator, id:1685B071-AFB2-4DC1-BE29-8370BA4A6EBD, OS:9.0, name:iPhone 5 }
{ platform:iOS Simulator, id:A141F23B-96B3-491A-8949-813B376C28A7, OS:9.0, name:iPhone 5 }
We don’t want to deal with that, so we just use the UDID
Instance Attribute Summary collapse
-
#ios_version ⇒ Object
Returns the value of attribute ios_version.
-
#name ⇒ Object
Returns the value of attribute name.
-
#udid ⇒ Object
Returns the value of attribute udid.
Instance Method Summary collapse
-
#initialize(name: nil, udid: nil, ios_version: nil) ⇒ Device
constructor
A new instance of Device.
- #to_s ⇒ Object
Constructor Details
#initialize(name: nil, udid: nil, ios_version: nil) ⇒ Device
Returns a new instance of Device.
61 62 63 64 65 |
# File 'lib/fastlane_core/simulator.rb', line 61 def initialize(name: nil, udid: nil, ios_version: nil) self.name = name self.udid = udid self.ios_version = ios_version end |
Instance Attribute Details
#ios_version ⇒ Object
Returns the value of attribute ios_version.
59 60 61 |
# File 'lib/fastlane_core/simulator.rb', line 59 def ios_version @ios_version end |
#name ⇒ Object
Returns the value of attribute name.
55 56 57 |
# File 'lib/fastlane_core/simulator.rb', line 55 def name @name end |
#udid ⇒ Object
Returns the value of attribute udid.
57 58 59 |
# File 'lib/fastlane_core/simulator.rb', line 57 def udid @udid end |
Instance Method Details
#to_s ⇒ Object
67 68 69 |
# File 'lib/fastlane_core/simulator.rb', line 67 def to_s self.name end |