Class: CBin::Framework::Builder
- Inherits:
-
Object
- Object
- CBin::Framework::Builder
- Includes:
- Pod
- Defined in:
- lib/cocoapods-bin/helpers/framework_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(spec, file_accessor, platform, source_dir) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Pod
Constructor Details
#initialize(spec, file_accessor, platform, source_dir) ⇒ Builder
Returns a new instance of Builder.
13 14 15 16 17 18 19 |
# File 'lib/cocoapods-bin/helpers/framework_builder.rb', line 13 def initialize(spec, file_accessor, platform, source_dir) @spec = spec @source_dir = source_dir @file_accessor = file_accessor @platform = platform @vendored_libraries = (file_accessor.vendored_static_frameworks + file_accessor.vendored_static_libraries).map(&:to_s) end |
Instance Method Details
#build ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cocoapods-bin/helpers/framework_builder.rb', line 21 def build UI.section("Building static framework #{@spec}") do defines = compile build_sim_libraries(defines) output = framework.versions_path + Pathname.new(@spec.name) build_static_library_for_ios(output) copy_headers copy_license copy_resources cp_to_source_dir end end |