Class: Pod::SPM::Hook::UpdateEmbedFrameworksScript

Inherits:
Pod::SPM::Hook show all
Defined in:
lib/cocoapods-spm/hooks/post_integrate/update_embed_frameworks_script.rb

Instance Method Summary collapse

Methods inherited from Pod::SPM::Hook

#aggregate_targets, #config, #initialize, #perform_settings_update, #pod_targets, #pods_project, run_hooks, #sandbox, #user_build_configurations

Methods included from Config::Mixin

#macro_pods, #spm_config

Constructor Details

This class inherits a constructor from Pod::SPM::Hook

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/cocoapods-spm/hooks/post_integrate/update_embed_frameworks_script.rb', line 7

def run
  aggregate_targets.each do |target|
    next if framework_paths_for(target).empty?

    update_embed_frameworks_script(target)
    user_build_configurations.each_key do |config|
      update_embed_frameworks_script_files_path(target, config)
    end
  end
end