Method: Pod::Podfile::TargetDefinition#set_inhibit_warnings_for_pod

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

#set_inhibit_warnings_for_pod(pod_name, should_inhibit) ⇒ void

This method returns an undefined value.

Inhibits warnings for a specific pod during compilation.

Parameters:

  • pod_name (String)

    Name of the pod for which the warnings will be inhibited or not.

  • should_inhibit (Boolean)

    Whether the warnings should be inhibited or not for given pod.



351
352
353
354
355
356
357
358
359
360
361
362
363
364
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 351

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