Sha256: 7c66b38e61464e9ff702985b4dca23ad147da775bcab42b00f073e52db7a6f2c
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
module Pod class Frameworker include PodUtil include DirUtil include Config::Mixin def initialize(name, source, spec_sources, subspecs, configuration, force) @name = name @source = source @spec_sources = spec_sources @subspecs = subspecs @configuration = configuration @force = force end def run spec = spec_with_path @name @is_spec_from_path = true if spec spec ||= spec_with_name @name target_dir, work_dir = create_working_directory_by_spec spec, @force build_framework spec, work_dir, target_dir end def build_framework spec, work_dir, target_dir build_in_sandbox(work_dir, spec, target_dir) end def build_in_sandbox work_dir, spec, target_dir config.installation_root = Pathname.new work_dir config.sandbox_root = "#{work_dir}/Pods" sandbox = build_static_sandbox sandbox_installer = installation_root( sandbox, spec, @subspecs, @spec_sources, ) perform_build( sandbox, sandbox_installer, spec, target_dir ) end # def perform_build platform, sandbox, installer, spec def perform_build sandbox, installer, spec, target_dir sandbox_root = config.sandbox_root.to_s builder = Pod::XBuilder.new( installer, Dir.pwd, sandbox_root, spec, @configuration ) builder.build builder.outputs target_dir target_dir end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-xcframework-0.0.4 | lib/cocoapods-framework/frameworker.rb |