lib/cocoapods/installer/user_project_integrator/target_integrator.rb
# Integrates the user project targets. Only the targets that do **not**
# already have the Pods library in their frameworks build phase are
# processed.
#
# @return [void]
#
Integrates the user project targets. Only the targets that do **not
already have the Pods library in their frameworks build phase are
processed.
Integrates the user project targets . Only the targets that do ** not already have the Pods library in their frameworks build phase are processed .
def integrate!
          UI.section(integration_message) do
            project_is_dirty = [
              XCConfigIntegrator.integrate(target, native_targets),
              update_to_cocoapods_0_34,
              unless native_targets_to_integrate.empty?
                add_pods_library
                add_copy_resources_script_phase
                add_check_manifest_lock_script_phase
                true
              end
            ].any?
            if project_is_dirty
              user_project.save
            else
               Touching/saving the project causes Xcode to reload these.
               https://github.com/CocoaPods/CocoaPods/issues/2665
              FileUtils.touch(user_project.path + 'project.pbxproj')
            end
          end
        end
def integrate! UI . section ( integration_message ) do project_is_dirty = [ XCConfigIntegrator . integrate ( target , native_targets ) , update_to_cocoapods_0_34 , unless native_targets_to_integrate . empty? add_pods_library add_copy_resources_script_phase add_check_manifest_lock_script_phase true end ] . any? if project_is_dirty user_project . save else FileUtils . touch ( user_project . path + 'project.pbxproj' ) end end end
Integrates the user project targets.
Integrates the user project targets .
# TODO: refactor into Xcodeproj https://github.com/CocoaPods/Xcodeproj/issues/202 # There is a bug in Xcode where the process of deleting and # re-creating the xcconfig files used in the build # configuration cause building the user project to fail until # Xcode is relaunched. # # Touching/saving the project causes Xcode to reload these. # # https://github.com/CocoaPods/CocoaPods/issues/2665
None
void