Class: SimCtl::Xcode::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/simctl/xcode/path.rb

Class Method Summary collapse

Class Method Details

.homeObject



5
6
7
# File 'lib/simctl/xcode/path.rb', line 5

def home
  @home ||= `xcode-select -p`.chomp
end

.runtime_profilesObject



13
14
15
16
17
18
19
20
21
# File 'lib/simctl/xcode/path.rb', line 13

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

.sdk_rootObject



9
10
11
# File 'lib/simctl/xcode/path.rb', line 9

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