Class: Pod::Target::BuildSettings::PodTargetSettings
- Inherits:
-
Pod::Target::BuildSettings
- Object
- Pod::Target::BuildSettings
- Pod::Target::BuildSettings::PodTargetSettings
- Defined in:
- lib/cocoapods/target/build_settings.rb
Overview
A subclass that generates build settings for a PodTarget
Constant Summary
Constants inherited from Pod::Target::BuildSettings
CONFIGURATION_BUILD_DIR_VARIABLE, PLURAL_SETTINGS
Public API collapse
-
#test_spec ⇒ Specification
readonly
The test specification these build settings are for or ‘nil`.
-
#test_xcconfig ⇒ Boolean
(also: #test_xcconfig?)
readonly
Whether settings are being generated for a test bundle.
Attributes inherited from Pod::Target::BuildSettings
Public API collapse
- .build_settings_names ⇒ Object
-
#initialize(target, test_spec = nil) ⇒ PodTargetSettings
constructor
Initializes a new instance.
-
#xcconfig ⇒ Xcodeproj::Xconfig
The ‘xcconfig` build setting for the #target.
Paths collapse
-
#pods_root ⇒ String
The ‘pods_root` build setting for the #target.
-
#pods_target_srcroot ⇒ String
The ‘pods_target_srcroot` build setting for the #target.
Frameworks collapse
-
#consumer_frameworks ⇒ Array<String>
The ‘consumer_frameworks` build setting for the #target.
-
#dynamic_frameworks_to_import ⇒ Array<String>
The ‘dynamic_frameworks_to_import` build setting for the #target.
-
#framework_search_paths ⇒ Array<String>
The ‘framework_search_paths` build setting for the #target.
-
#framework_search_paths_to_import ⇒ Array<String>
The ‘framework_search_paths_to_import` build setting for the #target.
-
#frameworks ⇒ Array<String>
The ‘frameworks` build setting for the #target.
-
#frameworks_to_import ⇒ Array<String>
The ‘frameworks_to_import` build setting for the #target.
-
#static_frameworks_to_import ⇒ Array<String>
The ‘static_frameworks_to_import` build setting for the #target.
-
#vendored_dynamic_frameworks ⇒ Array<String>
The ‘vendored_dynamic_frameworks` build setting for the #target.
-
#vendored_framework_search_paths ⇒ Array<String>
The ‘vendored_framework_search_paths` build setting for the #target.
-
#vendored_static_frameworks ⇒ Array<String>
The ‘vendored_static_frameworks` build setting for the #target.
-
#weak_frameworks ⇒ Array<String>
The ‘weak_frameworks` build setting for the #target.
-
#weak_frameworks_to_import ⇒ Array<String>
The ‘weak_frameworks_to_import` build setting for the #target.
Libraries collapse
-
#dynamic_libraries_to_import ⇒ Array<String>
The ‘dynamic_libraries_to_import` build setting for the #target.
-
#libraries ⇒ Array<String>
The ‘libraries` build setting for the #target.
-
#libraries_to_import ⇒ Array<String>
The ‘libraries_to_import` build setting for the #target.
-
#library_search_paths ⇒ Array<String>
The ‘library_search_paths` build setting for the #target.
-
#library_search_paths_to_import ⇒ Array<String>
The ‘library_search_paths_to_import` build setting for the #target.
-
#static_libraries_to_import ⇒ Array<String>
The ‘static_libraries_to_import` build setting for the #target.
-
#vendored_dynamic_libraries ⇒ Array<String>
The ‘vendored_dynamic_libraries` build setting for the #target.
-
#vendored_dynamic_library_search_paths ⇒ Array<String>
The ‘vendored_dynamic_library_search_paths` build setting for the #target.
-
#vendored_static_libraries ⇒ Array<String>
The ‘vendored_static_libraries` build setting for the #target.
-
#vendored_static_library_search_paths ⇒ Array<String>
The ‘vendored_static_library_search_paths` build setting for the #target.
Clang collapse
-
#header_search_paths ⇒ Array<String>
The ‘header_search_paths` build setting for the #target.
-
#module_map_file_to_import ⇒ Array<String>
The ‘module_map_file_to_import` build setting for the #target.
-
#module_map_files ⇒ Array<String>
The ‘module_map_files` build setting for the #target.
Swift collapse
-
#other_swift_flags ⇒ Array<String>
The ‘other_swift_flags` build setting for the #target.
-
#swift_include_paths ⇒ Array<String>
The ‘swift_include_paths` build setting for the #target.
-
#swift_include_paths_to_import ⇒ Array<String>
The ‘swift_include_paths_to_import` build setting for the #target.
Linking collapse
-
#ld_runpath_search_paths ⇒ Array<String>
The ‘ld_runpath_search_paths` build setting for the #target.
-
#requires_fobjc_arc? ⇒ Boolean
The ‘requires_fobjc_arc?` build setting for the #target.
-
#requires_objc_linker_flag? ⇒ Boolean
Whether the ‘-ObjC` linker flag is required.
Packaging collapse
-
#configuration_build_dir ⇒ String
The ‘configuration_build_dir` build setting for the #target.
-
#product_bundle_identifier ⇒ String
The ‘product_bundle_identifier` build setting for the #target.
-
#skip_install ⇒ String
The ‘skip_install` build setting for the #target.
Target Properties collapse
-
#dependent_targets ⇒ Array<PodTarget>
The ‘dependent_targets` build setting for the #target.
-
#file_accessors ⇒ Array<Sandbox::FileAccessor>
The ‘file_accessors` build setting for the #target.
-
#merged_pod_target_xcconfigs ⇒ Hash{String, String}
Merges the
pod_target_xcconfig
for all pod targets into a single hash and warns on conflicting definitions. -
#pod_target_xcconfig_values_by_consumer_by_key ⇒ Hash{String,Hash{Target,String}]
Returns the
pod_target_xcconfig
for the pod target and its spec consumers grouped by keys. -
#spec_consumers ⇒ Array<Specification::Consumer>
The ‘spec_consumers` build setting for the #target.
Methods inherited from Pod::Target::BuildSettings
#code_sign_identity, #framework_search_paths_to_import_developer_frameworks, #gcc_preprocessor_definitions, #initialize_copy, #other_cflags, #other_ldflags, #other_swift_flags_without_swift?, #pods_build_dir, #pods_configuration_build_dir, #save_as
Constructor Details
#initialize(target, test_spec = nil) ⇒ PodTargetSettings
Initializes a new instance
476 477 478 479 480 |
# File 'lib/cocoapods/target/build_settings.rb', line 476 def initialize(target, test_spec = nil) super(target) @test_spec = test_spec @test_xcconfig = !test_spec.nil? end |
Instance Attribute Details
#test_spec ⇒ Specification (readonly)
Returns The test specification these build settings are for or ‘nil`.
466 467 468 |
# File 'lib/cocoapods/target/build_settings.rb', line 466 def test_spec @test_spec end |
#test_xcconfig ⇒ Boolean (readonly) Also known as: test_xcconfig?
Returns whether settings are being generated for a test bundle.
460 461 462 |
# File 'lib/cocoapods/target/build_settings.rb', line 460 def test_xcconfig @test_xcconfig end |
Class Method Details
.build_settings_names ⇒ Object
453 454 455 |
# File 'lib/cocoapods/target/build_settings.rb', line 453 def self.build_settings_names @build_settings_names | BuildSettings.build_settings_names end |
Instance Method Details
#configuration_build_dir ⇒ String
The ‘configuration_build_dir` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘configuration_build_dir, build_setting, memoized`.
762 763 764 765 |
# File 'lib/cocoapods/target/build_settings.rb', line 762 define_build_settings_method :configuration_build_dir, :build_setting => true, :memoized => true do return if test_xcconfig? target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE) end |
#consumer_frameworks ⇒ Array<String>
The ‘consumer_frameworks` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘consumer_frameworks, memoized`.
507 508 509 |
# File 'lib/cocoapods/target/build_settings.rb', line 507 define_build_settings_method :consumer_frameworks, :memoized => true do spec_consumers.flat_map(&:frameworks) end |
#dependent_targets ⇒ Array<PodTarget>
The ‘dependent_targets` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘dependent_targets, memoized`.
772 773 774 775 776 777 778 779 780 |
# File 'lib/cocoapods/target/build_settings.rb', line 772 define_build_settings_method :dependent_targets, :memoized => true do select_maximal_pod_targets( if test_xcconfig? target.all_dependent_targets else target.recursive_dependent_targets end, ) end |
#dynamic_frameworks_to_import ⇒ Array<String>
The ‘dynamic_frameworks_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘dynamic_frameworks_to_import, memoized`.
532 533 534 535 536 537 |
# File 'lib/cocoapods/target/build_settings.rb', line 532 define_build_settings_method :dynamic_frameworks_to_import, :memoized => true do dynamic_frameworks_to_import = vendored_dynamic_frameworks.map { |f| File.basename(f, '.framework') } dynamic_frameworks_to_import << target.product_basename if target.should_build? && target.requires_frameworks? && !target.static_framework? dynamic_frameworks_to_import.concat consumer_frameworks dynamic_frameworks_to_import end |
#dynamic_libraries_to_import ⇒ Array<String>
The ‘dynamic_libraries_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘dynamic_libraries_to_import, memoized`.
613 614 615 616 |
# File 'lib/cocoapods/target/build_settings.rb', line 613 define_build_settings_method :dynamic_libraries_to_import, :memoized => true do vendored_dynamic_libraries.map { |l| File.basename(l, l.extname).sub(/\Alib/, '') } + spec_consumers.flat_map(&:libraries) end |
#file_accessors ⇒ Array<Sandbox::FileAccessor>
The ‘file_accessors` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘file_accessors, memoized`.
805 806 807 |
# File 'lib/cocoapods/target/build_settings.rb', line 805 define_build_settings_method :file_accessors, :memoized => true do target.file_accessors.select { |fa| fa.spec.test_specification? == test_xcconfig? } end |
#framework_search_paths ⇒ Array<String>
The ‘framework_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘framework_search_paths, build_setting, memoized, sorted, uniqued`.
559 560 561 562 563 564 565 |
# File 'lib/cocoapods/target/build_settings.rb', line 559 define_build_settings_method :framework_search_paths, :build_setting => true, :memoized => true, :sorted => true, :uniqued => true do paths = super().dup paths.concat dependent_targets.flat_map { |t| t.build_settings.framework_search_paths_to_import } paths.concat framework_search_paths_to_import paths.delete(target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE)) unless test_xcconfig? paths end |
#framework_search_paths_to_import ⇒ Array<String>
The ‘framework_search_paths_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘framework_search_paths_to_import, memoized`.
573 574 575 576 577 578 579 |
# File 'lib/cocoapods/target/build_settings.rb', line 573 define_build_settings_method :framework_search_paths_to_import, :memoized => true do paths = framework_search_paths_to_import_developer_frameworks(consumer_frameworks) paths.concat vendored_framework_search_paths return paths unless target.requires_frameworks? && target.should_build? paths + [target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE)] end |
#frameworks ⇒ Array<String>
The ‘frameworks` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘frameworks, memoized, sorted, uniqued`.
512 513 514 515 516 517 518 519 520 521 |
# File 'lib/cocoapods/target/build_settings.rb', line 512 define_build_settings_method :frameworks, :memoized => true, :sorted => true, :uniqued => true do return [] if (!target.requires_frameworks? || target.static_framework?) && !test_xcconfig? frameworks = vendored_dynamic_frameworks.map { |l| File.basename(l, '.framework') } frameworks.concat vendored_static_frameworks.map { |l| File.basename(l, '.framework') } unless test_xcconfig? frameworks.concat consumer_frameworks frameworks.concat dependent_targets.flat_map { |pt| pt.build_settings.dynamic_frameworks_to_import } frameworks.concat dependent_targets.flat_map { |pt| pt.build_settings.static_frameworks_to_import } if test_xcconfig? frameworks end |
#frameworks_to_import ⇒ Array<String>
The ‘frameworks_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘frameworks_to_import, memoized, sorted, uniqued`.
549 550 551 |
# File 'lib/cocoapods/target/build_settings.rb', line 549 define_build_settings_method :frameworks_to_import, :memoized => true, :sorted => true, :uniqued => true do static_frameworks_to_import + dynamic_frameworks_to_import end |
#header_search_paths ⇒ Array<String>
The ‘header_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘header_search_paths, build_setting, memoized, sorted`.
689 690 691 |
# File 'lib/cocoapods/target/build_settings.rb', line 689 define_build_settings_method :header_search_paths, :build_setting => true, :memoized => true, :sorted => true do target.header_search_paths(test_xcconfig?) end |
#ld_runpath_search_paths ⇒ Array<String>
The ‘ld_runpath_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘ld_runpath_search_paths, build_setting, memoized`.
742 743 744 745 |
# File 'lib/cocoapods/target/build_settings.rb', line 742 define_build_settings_method :ld_runpath_search_paths, :build_setting => true, :memoized => true do return unless test_xcconfig? _ld_runpath_search_paths(:test_bundle => true) end |
#libraries ⇒ Array<String>
The ‘libraries` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘libraries, memoized, sorted, uniqued`.
596 597 598 599 600 601 602 603 |
# File 'lib/cocoapods/target/build_settings.rb', line 596 define_build_settings_method :libraries, :memoized => true, :sorted => true, :uniqued => true do return [] if (!target.requires_frameworks? || target.static_framework?) && !test_xcconfig? libraries = libraries_to_import.dup libraries.concat dependent_targets.flat_map { |pt| pt.build_settings.dynamic_libraries_to_import } libraries.concat dependent_targets.flat_map { |pt| pt.build_settings.static_libraries_to_import } if test_xcconfig? libraries end |
#libraries_to_import ⇒ Array<String>
The ‘libraries_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘libraries_to_import, memoized, sorted, uniqued`.
619 620 621 |
# File 'lib/cocoapods/target/build_settings.rb', line 619 define_build_settings_method :libraries_to_import, :memoized => true, :sorted => true, :uniqued => true do static_libraries_to_import + dynamic_libraries_to_import end |
#library_search_paths ⇒ Array<String>
The ‘library_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘library_search_paths, build_setting, memoized, sorted, uniqued`.
624 625 626 627 628 629 630 631 632 633 634 635 |
# File 'lib/cocoapods/target/build_settings.rb', line 624 define_build_settings_method :library_search_paths, :build_setting => true, :memoized => true, :sorted => true, :uniqued => true do return [] if (!target.requires_frameworks? || target.static_framework?) && !test_xcconfig? vendored = library_search_paths_to_import.dup vendored.concat dependent_targets.flat_map { |t| t.build_settings.vendored_dynamic_library_search_paths } if test_xcconfig? vendored.concat dependent_targets.flat_map { |t| t.build_settings.library_search_paths_to_import } else vendored.delete(target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE)) end vendored end |
#library_search_paths_to_import ⇒ Array<String>
The ‘library_search_paths_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘library_search_paths_to_import, memoized`.
658 659 660 661 662 663 |
# File 'lib/cocoapods/target/build_settings.rb', line 658 define_build_settings_method :library_search_paths_to_import, :memoized => true do vendored_library_search_paths = vendored_static_library_search_paths + vendored_dynamic_library_search_paths return vendored_library_search_paths if target.requires_frameworks? || !target.should_build? vendored_library_search_paths << target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE) end |
#merged_pod_target_xcconfigs ⇒ Hash{String, String}
Merges the pod_target_xcconfig
for all pod targets into a single hash and warns on conflicting definitions.
The ‘merged_pod_target_xcconfigs` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘merged_pod_target_xcconfigs, memoized`.
800 801 802 |
# File 'lib/cocoapods/target/build_settings.rb', line 800 define_build_settings_method :merged_pod_target_xcconfigs, :memoized => true do merged_xcconfigs(pod_target_xcconfig_values_by_consumer_by_key, :pod_target_xcconfig) end |
#module_map_file_to_import ⇒ Array<String>
The ‘module_map_file_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘module_map_file_to_import, memoized`.
675 676 677 678 679 680 681 682 683 684 685 686 |
# File 'lib/cocoapods/target/build_settings.rb', line 675 define_build_settings_method :module_map_file_to_import, :memoized => true do return unless target.should_build? return if target.requires_frameworks? return unless target.defines_module? if target.uses_swift? # for swift, we have a custom build phase that copies in the module map, appending the .Swift module "${PODS_CONFIGURATION_BUILD_DIR}/#{target.label}/#{target.product_module_name}.modulemap" else "${PODS_ROOT}/#{target.module_map_path.relative_path_from(target.sandbox.root)}" end end |
#module_map_files ⇒ Array<String>
The ‘module_map_files` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘module_map_files, memoized`.
670 671 672 |
# File 'lib/cocoapods/target/build_settings.rb', line 670 define_build_settings_method :module_map_files, :memoized => true do dependent_targets.map { |t| t.build_settings.module_map_file_to_import }.compact.sort end |
#other_swift_flags ⇒ Array<String>
The ‘other_swift_flags` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘other_swift_flags, build_setting, memoized`.
698 699 700 701 702 703 704 705 706 |
# File 'lib/cocoapods/target/build_settings.rb', line 698 define_build_settings_method :other_swift_flags, :build_setting => true, :memoized => true do return unless target.uses_swift? flags = super() flags << '-suppress-warnings' if target.inhibit_warnings? if !target.requires_frameworks? && target.defines_module? && !test_xcconfig? flags.concat %w( -import-underlying-module -Xcc -fmodule-map-file=${SRCROOT}/${MODULEMAP_FILE} ) end flags end |
#pod_target_xcconfig_values_by_consumer_by_key ⇒ Hash{String,Hash{Target,String}]
Returns the pod_target_xcconfig
for the pod target and its spec consumers grouped by keys
787 788 789 790 791 792 793 |
# File 'lib/cocoapods/target/build_settings.rb', line 787 def pod_target_xcconfig_values_by_consumer_by_key spec_consumers.each_with_object({}) do |spec_consumer, hash| spec_consumer.pod_target_xcconfig.each do |k, v| (hash[k] ||= {})[spec_consumer] = v end end end |
#pods_root ⇒ String
The ‘pods_root` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘pods_root, build_setting`.
493 494 495 |
# File 'lib/cocoapods/target/build_settings.rb', line 493 define_build_settings_method :pods_root, :build_setting => true do '${SRCROOT}' end |
#pods_target_srcroot ⇒ String
The ‘pods_target_srcroot` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘pods_target_srcroot, build_setting`.
498 499 500 |
# File 'lib/cocoapods/target/build_settings.rb', line 498 define_build_settings_method :pods_target_srcroot, :build_setting => true do target.pod_target_srcroot end |
#product_bundle_identifier ⇒ String
The ‘product_bundle_identifier` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘product_bundle_identifier, build_setting`.
757 758 759 |
# File 'lib/cocoapods/target/build_settings.rb', line 757 define_build_settings_method :product_bundle_identifier, :build_setting => true do 'org.cocoapods.${PRODUCT_NAME:rfc1034identifier}' end |
#requires_fobjc_arc? ⇒ Boolean
The ‘requires_fobjc_arc?` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘requires_fobjc_arc?, memoized`.
736 737 738 739 |
# File 'lib/cocoapods/target/build_settings.rb', line 736 define_build_settings_method :requires_fobjc_arc?, :memoized => true do target.podfile.set_arc_compatibility_flag? && file_accessors.any? { |fa| fa.spec_consumer.requires_arc? } end |
#requires_objc_linker_flag? ⇒ Boolean
this is only true when generating build settings for a test bundle
Returns whether the ‘-ObjC` linker flag is required.
730 731 732 |
# File 'lib/cocoapods/target/build_settings.rb', line 730 def requires_objc_linker_flag? test_xcconfig? end |
#skip_install ⇒ String
The ‘skip_install` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘skip_install, build_setting`.
752 753 754 |
# File 'lib/cocoapods/target/build_settings.rb', line 752 define_build_settings_method :skip_install, :build_setting => true do 'YES' end |
#spec_consumers ⇒ Array<Specification::Consumer>
The ‘spec_consumers` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘spec_consumers, memoized`.
810 811 812 |
# File 'lib/cocoapods/target/build_settings.rb', line 810 define_build_settings_method :spec_consumers, :memoized => true do target.spec_consumers.select { |c| c.spec.test_specification? == test_xcconfig? } end |
#static_frameworks_to_import ⇒ Array<String>
The ‘static_frameworks_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘static_frameworks_to_import, memoized`.
524 525 526 527 528 529 |
# File 'lib/cocoapods/target/build_settings.rb', line 524 define_build_settings_method :static_frameworks_to_import, :memoized => true do static_frameworks_to_import = [] static_frameworks_to_import.concat vendored_static_frameworks.map { |f| File.basename(f, '.framework') } unless target.should_build? && target.requires_frameworks? && !target.static_framework? static_frameworks_to_import << target.product_basename if target.should_build? && target.requires_frameworks? && target.static_framework? static_frameworks_to_import end |
#static_libraries_to_import ⇒ Array<String>
The ‘static_libraries_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘static_libraries_to_import, memoized`.
606 607 608 609 610 |
# File 'lib/cocoapods/target/build_settings.rb', line 606 define_build_settings_method :static_libraries_to_import, :memoized => true do static_libraries_to_import = vendored_static_libraries.map { |l| File.basename(l, l.extname).sub(/\Alib/, '') } static_libraries_to_import << target.product_basename if target.should_build? && !target.requires_frameworks? static_libraries_to_import end |
#swift_include_paths ⇒ Array<String>
The ‘swift_include_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘swift_include_paths, build_setting, memoized, sorted, uniqued`.
709 710 711 712 713 |
# File 'lib/cocoapods/target/build_settings.rb', line 709 define_build_settings_method :swift_include_paths, :build_setting => true, :memoized => true, :sorted => true, :uniqued => true do paths = dependent_targets.flat_map { |t| t.build_settings.swift_include_paths_to_import } paths.concat swift_include_paths_to_import if test_xcconfig? paths end |
#swift_include_paths_to_import ⇒ Array<String>
The ‘swift_include_paths_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘swift_include_paths_to_import, memoized`.
716 717 718 719 720 |
# File 'lib/cocoapods/target/build_settings.rb', line 716 define_build_settings_method :swift_include_paths_to_import, :memoized => true do return [] unless target.uses_swift? && !target.requires_frameworks? [target.configuration_build_dir(CONFIGURATION_BUILD_DIR_VARIABLE)] end |
#vendored_dynamic_frameworks ⇒ Array<String>
The ‘vendored_dynamic_frameworks` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_dynamic_frameworks, memoized`.
587 588 589 |
# File 'lib/cocoapods/target/build_settings.rb', line 587 define_build_settings_method :vendored_dynamic_frameworks, :memoized => true do file_accessors.flat_map(&:vendored_dynamic_frameworks) end |
#vendored_dynamic_libraries ⇒ Array<String>
The ‘vendored_dynamic_libraries` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_dynamic_libraries, memoized`.
643 644 645 |
# File 'lib/cocoapods/target/build_settings.rb', line 643 define_build_settings_method :vendored_dynamic_libraries, :memoized => true do file_accessors.flat_map(&:vendored_dynamic_libraries) end |
#vendored_dynamic_library_search_paths ⇒ Array<String>
The ‘vendored_dynamic_library_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_dynamic_library_search_paths, memoized`.
653 654 655 |
# File 'lib/cocoapods/target/build_settings.rb', line 653 define_build_settings_method :vendored_dynamic_library_search_paths, :memoized => true do vendored_dynamic_libraries.map { |f| File.join '${PODS_ROOT}', f.dirname.relative_path_from(target.sandbox.root) } end |
#vendored_framework_search_paths ⇒ Array<String>
The ‘vendored_framework_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_framework_search_paths, memoized`.
568 569 570 |
# File 'lib/cocoapods/target/build_settings.rb', line 568 define_build_settings_method :vendored_framework_search_paths, :memoized => true do file_accessors.flat_map(&:vendored_frameworks).map { |f| File.join '${PODS_ROOT}', f.dirname.relative_path_from(target.sandbox.root) } end |
#vendored_static_frameworks ⇒ Array<String>
The ‘vendored_static_frameworks` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_static_frameworks, memoized`.
582 583 584 |
# File 'lib/cocoapods/target/build_settings.rb', line 582 define_build_settings_method :vendored_static_frameworks, :memoized => true do file_accessors.flat_map(&:vendored_static_frameworks) end |
#vendored_static_libraries ⇒ Array<String>
The ‘vendored_static_libraries` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_static_libraries, memoized`.
638 639 640 |
# File 'lib/cocoapods/target/build_settings.rb', line 638 define_build_settings_method :vendored_static_libraries, :memoized => true do file_accessors.flat_map(&:vendored_static_libraries) end |
#vendored_static_library_search_paths ⇒ Array<String>
The ‘vendored_static_library_search_paths` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘vendored_static_library_search_paths, memoized`.
648 649 650 |
# File 'lib/cocoapods/target/build_settings.rb', line 648 define_build_settings_method :vendored_static_library_search_paths, :memoized => true do vendored_static_libraries.map { |f| File.join '${PODS_ROOT}', f.dirname.relative_path_from(target.sandbox.root) } end |
#weak_frameworks ⇒ Array<String>
The ‘weak_frameworks` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘weak_frameworks, memoized`.
540 541 542 543 544 545 546 |
# File 'lib/cocoapods/target/build_settings.rb', line 540 define_build_settings_method :weak_frameworks, :memoized => true do return [] if (!target.requires_frameworks? || target.static_framework?) && !test_xcconfig? weak_frameworks = spec_consumers.flat_map(&:weak_frameworks) weak_frameworks.concat dependent_targets.flat_map { |pt| pt.build_settings.weak_frameworks_to_import } weak_frameworks end |
#weak_frameworks_to_import ⇒ Array<String>
The ‘weak_frameworks_to_import` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘weak_frameworks_to_import, memoized, sorted, uniqued`.
554 555 556 |
# File 'lib/cocoapods/target/build_settings.rb', line 554 define_build_settings_method :weak_frameworks_to_import, :memoized => true, :sorted => true, :uniqued => true do [] end |
#xcconfig ⇒ Xcodeproj::Xconfig
The ‘xcconfig` build setting for the Pod::Target::BuildSettings#target.
The return value from this method will be: ‘xcconfig, memoized`.
483 484 485 486 |
# File 'lib/cocoapods/target/build_settings.rb', line 483 define_build_settings_method :xcconfig, :memoized => true do xcconfig = super() xcconfig.merge(merged_pod_target_xcconfigs) end |