Method: Pod::Podfile::TargetDefinition#set_use_modular_headers_for_pod

Defined in:
lib/cocoapods-core/podfile/target_definition.rb

#set_use_modular_headers_for_pod(pod_name, flag) ⇒ void

This method returns an undefined value.

Use modular headers for a specific pod during compilation.

Parameters:

  • pod_name (String)

    Name of the pod for which modular headers will be used.

  • flag (Boolean)

    Whether modular headers should be used.



597
598
599
600
601
602
603
604
605
606
607
608
609
610
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 597

def set_use_modular_headers_for_pod(pod_name, flag)
  hash_key = case flag
             when true
               'for_pods'
             when false
               'not_for_pods'
             when nil
               return
             else
               raise ArgumentError, "Got `#{flag.inspect}`, should be a boolean"
             end
  raw_use_modular_headers_hash[hash_key] ||= []
  raw_use_modular_headers_hash[hash_key] << pod_name
end