module Pod

Tool to transform Pod_name to target efficiently

A fix in embeded frameworks script.

The framework file in pod target folder is a symblink. The EmbedFrameworksScript use `readlink` to read the read path. As the symlink is a relative symlink, readlink cannot handle it well. So we override the `readlink` to a fixed version.

Let cocoapods use the prebuild framework files in install process.

the code only effect the second pod install process.

Public Class Methods

fast_get_targets_for_pod_name(pod_name, targets, cache) click to toggle source
# File lib/cocoapods-binary-cache/pod-binary/helper/names.rb, line 19
def self.fast_get_targets_for_pod_name(pod_name, targets, cache)
  pod_name = pod_name.split("/")[0] # Look for parent spec instead of subspecs
  if cache.empty?
    targets.select { |target| target.name == pod_name }
  else
    cache.first[pod_name] || []
  end
end