Method: PodBuilder::Podfile.install_using_frameworks

Defined in:
lib/pod_builder/podfile.rb

.install_using_frameworks(analyzer) ⇒ Object



458
459
460
461
462
463
464
465
466
467
468
469
# File 'lib/pod_builder/podfile.rb', line 458

def self.install_using_frameworks(analyzer)
  target_settings = analyzer.podfile.target_definition_list.map(&:uses_frameworks?).uniq
  if target_settings.count == 1
    return target_settings.first
  elsif target_settings.count > 1
    raise "\n\n'use_frameworks!' should be declared only once at Podfile root level (not nested in targets)\n".red
  else
    raise "\n\nFailed detecting use_frameworks!\n".red
  end

  return true
end