Class: Pod::Installer::UserProjectIntegrator::TargetIntegrator::XCConfigIntegrator

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb

Overview

Configures an user target to use the CocoaPods xcconfigs which allow lo link against the Pods.

Class Method Summary collapse

Class Method Details

.integrate(pod_bundle, targets) ⇒ Bool

Integrates the user target.

Parameters:

  • pod_bundle (Target::AggregateTarget)

    The Pods bundle.

  • targets (Array<PBXNativeTarget>)

    The native targets associated which should be integrated with the Pod bundle.

Returns:

  • (Bool)

    whether any changes to the project were made.



20
21
22
23
24
25
26
27
28
29
# File 'lib/cocoapods/installer/user_project_integrator/target_integrator/xcconfig_integrator.rb', line 20

def self.integrate(pod_bundle, targets)
  changes = false
  targets.each do |target|
    target.build_configurations.each do |config|
      changes = true if update_to_cocoapods_0_34(pod_bundle, targets)
      changes = true if set_target_xcconfig(pod_bundle, target, config)
    end
  end
  changes
end