title: Forcing a Pod to be built as static library using a property
body: <p>I wanted to know if there is any property that I can use to force a pod to be linked as static library. E.g.:</p>
  
  <p><code>pod 'RNPermissions', :link_as_static_library =&gt; true</code></p>
  
  <p>Tried lots of stuff checking <code>pod.build_as_static_library?</code> on post_install but it doesn't work when I check through.</p>
  
  <p>As for now I'm doing this (CocoaPods 1.9.0):</p>
  
  <pre><code>$static_frameworks = ['RNPermissions', 'Permission-Camera', 'Permission-PhotoLibrary', 'Permission-Microphone']
  
  pre_install do |installer|
  installer.pod_targets.each do |pod|
   if $static_frameworks.include?(pod.name)
     puts "Overriding as static framework:#{pod.name}"
     def pod.build_type;
      Pod::BuildType.static_library
     end
    end
   end
  end
  </code></pre>