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.
81 82 83 84 85 |
# File 'lib/fastlane_core/simulator.rb', line 81 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.
79 80 81 |
# File 'lib/fastlane_core/simulator.rb', line 79 def ios_version @ios_version end |
#name ⇒ Object
Returns the value of attribute name.
75 76 77 |
# File 'lib/fastlane_core/simulator.rb', line 75 def name @name end |
#udid ⇒ Object
Returns the value of attribute udid.
77 78 79 |
# File 'lib/fastlane_core/simulator.rb', line 77 def udid @udid end |
Instance Method Details
#to_s ⇒ Object
87 88 89 |
# File 'lib/fastlane_core/simulator.rb', line 87 def to_s self.name end |