in cocoapods-plugin/lib/cocoapods-xcremotecache/command/hooks.rb [262:281]
def self.download_xcrc_if_needed(local_location)
required_binaries = ['xcld', 'xcldplusplus', 'xclibtool', 'xclipo', 'xcpostbuild', 'xcprebuild', 'xcprepare', 'xcswiftc']
binaries_exist = required_binaries.reduce(true) do |exists, filename|
file_path = File.join(local_location, filename)
exists = exists && File.exist?(file_path)
end
return if binaries_exist
Dir.mkdir(local_location) unless File.exist?(local_location)
local_package_location = File.join(local_location, 'package.zip')
download_latest_xcrc_release(local_package_location)
if !system("unzip #{local_package_location} -d #{local_location}")
throw "Unzipping XCRemoteCache failed"
end
end