Class: Fastlane::Helper::XcversionHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::XcversionHelper
- Defined in:
- fastlane/lib/fastlane/helper/xcversion_helper.rb
Class Method Summary collapse
Class Method Details
.find_xcode(req) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'fastlane/lib/fastlane/helper/xcversion_helper.rb', line 4 def self.find_xcode(req) req = Gem::Requirement.new(req.to_s) require 'xcode/install' installer = XcodeInstall::Installer.new installed = installer.installed_versions.reverse installed.detect do |xcode| req.satisfied_by?(Gem::Version.new(xcode.version)) end end |