Class: Pod::SPM::Config::ProjectConfig
- Inherits:
-
Object
- Object
- Pod::SPM::Config::ProjectConfig
- Defined in:
- lib/cocoapods-spm/config/project.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.instance ⇒ Object
11 12 13 |
# File 'lib/cocoapods-spm/config/project.rb', line 11 def self.instance @instance ||= ProjectConfig.new end |
Instance Method Details
#default_derived_data_path ⇒ Object
23 24 25 26 27 28 |
# File 'lib/cocoapods-spm/config/project.rb', line 23 def default_derived_data_path @default_derived_data_path ||= begin raw = `xcodebuild -showBuildSettings -workspace #{workspace.shellescape} -scheme #{scheme.shellescape}` Pathname(raw[/BUILD_DIR = (.*)/, 1]).parent.parent end end |
#scheme ⇒ Object
19 20 21 |
# File 'lib/cocoapods-spm/config/project.rb', line 19 def scheme workspace.parent.glob("*.xcodeproj/**/*.xcscheme").first.basename(".xcscheme") end |