Module: CocoapodsRnToolkit::LibrarySearchPaths

Defined in:
lib/cocoapods-rn-toolkit/library_search_paths.rb

Class Method Summary collapse

Class Method Details

.apply(installer) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/cocoapods-rn-toolkit/library_search_paths.rb', line 3

def self.apply(installer)
  projects = installer.aggregate_targets
    .map{ |t| t.user_project }
    .uniq{ |p| p.path }
    .push(installer.pods_project)

  projects.each do |project|
    project.build_configurations.each do |config|
      fix_config(config)
    end
    project.native_targets.each do |target|
      target.build_configurations.each do |config|
        fix_config(config)
      end
    end
    project.save()
  end
end