22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/cocoapods-binary/Integration.rb', line 22
def install_for_prebuild!(standard_sanbox)
return if standard_sanbox.local? self.name
prebuild_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(standard_sanbox)
folder = prebuild_sandbox.framework_folder_path_for_pod_name(self.name)
target_folder = standard_sanbox.pod_dir(self.name)
target_folder.rmtree if target_folder.exist?
target_folder.mkdir
folder.children.each do |child|
source = child
target = target_folder + File.basename(source)
relative_source = source.relative_path_from(target.parent)
FileUtils.ln_sf(relative_source, target)
end
end
|