class Pod::Generator::EmbedFrameworksScript

Public Class Methods

new(*args) click to toggle source
# File lib/pod_builder/podfile/pre_actions_swizzles.rb, line 26
def initialize(*args)
  raise "Unsupported CocoaPods version" if (args.count == 0 || args.count > 2)
  
  frameworks_by_config = args[0]
  frameworks_by_config.keys.each do |key|
    items = frameworks_by_config[key]
    items.uniq! { |t| t.source_path }
    frameworks_by_config[key] = items
  end

  if args.count == 2
    # CocoaPods 1.10.0 and newer
    xcframeworks_by_config = args[1]
    xcframeworks_by_config.keys.each do |key|
      items = xcframeworks_by_config[key]
      items.uniq! { |t| t.path }
      xcframeworks_by_config[key] = items
    end
  end

  swz_initialize(*args)
end
Also aliased as: swz_initialize

Public Instance Methods

swz_initialize(*args)
Alias for: new