Class: SimCtl::Xcode::Path
- Inherits:
-
Object
- Object
- SimCtl::Xcode::Path
- Defined in:
- lib/simctl/xcode/path.rb
Class Method Summary collapse
Class Method Details
.home ⇒ Object
5 6 7 |
# File 'lib/simctl/xcode/path.rb', line 5 def home @home ||= `xcode-select -p`.chomp end |
.runtime_profiles ⇒ Object
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_root ⇒ Object
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 |