Sha256: 28258fb9f556e100e0eb5984fa407424298f95cf0c989e3357c9a2e03e33b959

Contents?: true

Size: 788 Bytes

Versions: 4

Compression:

Stored size: 788 Bytes

Contents

module SimCtl
  module Xcode
    class Path
      class << self
        def home
          @home ||= `xcode-select -p`.chomp
        end

        def sdk_root
          File.join(home, 'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk')
        end

        def runtime_profiles
          if Xcode::Version.gte? '11.0'
            File.join(home, 'Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/')
          elsif Xcode::Version.gte? '9.0'
            File.join(home, 'Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/')
          else
            File.join(home, 'Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/')
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simctl-1.6.10 lib/simctl/xcode/path.rb
simctl-1.6.8 lib/simctl/xcode/path.rb
simctl-1.6.7 lib/simctl/xcode/path.rb
simctl-1.6.6 lib/simctl/xcode/path.rb