Method: PodBuilder::Podfile.install_using_frameworks
- Defined in:
- lib/pod_builder/podfile.rb
.install_using_frameworks(analyzer) ⇒ Object
398 399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/pod_builder/podfile.rb', line 398 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)".red else raise "\n\nFailed detecting use_frameworks!" end return true end |