Method: Pod::Podfile::TargetDefinition#build_type
- Defined in:
- lib/cocoapods-core/podfile/target_definition.rb
#build_type ⇒ BuildType
The (desired) build type for the pods integrated in this target definition. Defaults to static libraries and can only be overridden through Pod::Podfile::DSL#use_frameworks!.
373 374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 373 def build_type value = get_hash_value('uses_frameworks', root? ? BuildType.static_library : parent.build_type) case value when true, false value ? BuildType.dynamic_framework : BuildType.static_library when Hash BuildType.new(:linkage => value.fetch(:linkage), :packaging => value.fetch(:packaging)) when BuildType value else raise ArgumentError, "Got `#{value.inspect}`, should be a boolean, hash or BuildType." end end |