Class: XCCache::SPM::FrameworkSlice

Inherits:
Buildable
  • Object
show all
Defined in:
lib/xccache/spm/xcframework/slice.rb

Instance Attribute Summary

Attributes inherited from Buildable

#config, #library_evolution, #live_log, #module_name, #name, #path, #pkg_desc, #pkg_dir, #sdk, #sdks, #tmpdir

Instance Method Summary collapse

Methods inherited from Buildable

#initialize, #pkg_target, #sh, #swift_build, #swift_build_args

Constructor Details

This class inherits a constructor from XCCache::SPM::Buildable

Instance Method Details

#build(_options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/xccache/spm/xcframework/slice.rb', line 6

def build(_options = {})
  live_log.puts("Building #{name}.framework (#{config}, #{sdk})".cyan, sticky: true)
  swift_build
  create_framework
end