class SimCtl::Xcode::Path
Public Class Methods
home()
click to toggle source
# File lib/simctl/xcode/path.rb, line 5 def home @home ||= `xcode-select -p`.chomp end
runtime_profiles()
click to toggle source
# 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_root()
click to toggle source
# File lib/simctl/xcode/path.rb, line 9 def sdk_root File.join(home, 'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk') end