Method: Pod::Podfile::DSL#use_frameworks!

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

#use_frameworks!(option = true) ⇒ void

This method returns an undefined value.

Use frameworks instead of static libraries for Pods. When using frameworks, you may also specify the :linkage style to use, either :static or :dynamic.


This attribute is inherited by child target definitions.

Examples:


target 'MyApp' do
  use_frameworks!
  pod 'AFNetworking', '~> 1.0'
end

target 'MyApp' do
  use_frameworks! :linkage => :dynamic
  pod 'AFNetworking', '~> 1.0'
end

target 'ZipApp' do
  use_frameworks! :linkage => :static
  pod 'SSZipArchive'
end

Parameters:

  • option (Boolean, Hash) (defaults to: true)

    The option to use for configuring packaging and linkage style.



748
749
750
# File 'lib/cocoapods-core/podfile/dsl.rb', line 748

def use_frameworks!(option = true)
  current_target_definition.use_frameworks!(option)
end