Class: Pod::Installer::PodSourceInstaller

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-binary/Integration.rb

Instance Method Summary collapse

Instance Method Details

#install_for_prebuild!(standard_sanbox) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/cocoapods-binary/Integration.rb', line 14

def install_for_prebuild!(standard_sanbox)
    # make a symlink to target folder
    prebuild_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(standard_sanbox)
    source = prebuild_sandbox.framework_path_for_pod_name self.name

    target_folder = standard_sanbox.pod_dir(self.name)
    return if standard_sanbox.local? self.name

    target_folder.rmtree if target_folder.exist?
    target_folder.mkdir unless target_folder.exist?
    target = target_folder + "#{self.name}.framework"
    File.symlink(source, target)
end