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)
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
|