Sha256: 8595cf91d0d21dcbef47ba7531b85ef28fff69904465d032e0db1b22d21b419e
Contents?: true
Size: 507 Bytes
Versions: 8
Compression:
Stored size: 507 Bytes
Contents
module Snapshot class LatestIosVersion def self.version return ENV["SNAPSHOT_IOS_VERSION"] if ENV["SNAPSHOT_IOS_VERSION"] output = `xcodebuild -version -sdk`.split("Mac").last # don't care about the Mac Part matched = output.match(/SDKVersion: ([\d\.]+)/) if matched.length > 1 return matched[1] else raise "Could not determine installed iOS SDK version. Please pass it via the environment variable 'SNAPSHOT_IOS_VERSION'".red end end end end
Version data entries
8 entries across 8 versions & 1 rubygems