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
13 14 15 |
# File 'lib/cocoapods-spm/config/project.rb', line 13 def self.instance @instance ||= ProjectConfig.new end |
Instance Method Details
#default_derived_data_path ⇒ Object
25 26 27 28 29 30 |
# File 'lib/cocoapods-spm/config/project.rb', line 25 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
21 22 23 |
# File 'lib/cocoapods-spm/config/project.rb', line 21 def scheme workspace.parent.glob("*.xcodeproj/**/*.xcscheme").first.basename(".xcscheme") end |
#workspace ⇒ Object
17 18 19 |
# File 'lib/cocoapods-spm/config/project.rb', line 17 def workspace @workspace ||= Pod::Config.instance.podfile.defined_in_file.parent.glob("*.xcworkspace").first end |