title: Create Flutter Plugin with pod dependencies
body: <p>I created a flutter plugin with "FacebookShare" dependency. 
  My pod spec like below,</p>
  
  <pre><code>Pod::Spec.new do |s|
    s.name             = '{plugin name}'
    s.version          = '0.0.2'
    s.summary          = 'A new Flutter plugin for share image and text in social media'
    s.description      = &lt;&lt;-DESC A new Flutter plugin for share image and text in social media
                         DESC
    s.homepage         = 'https://github.com/jayarajm/flutter_share_social_media.git'
    s.license          = { :file =&gt; '../LICENSE' }
    s.author           = { '...' =&gt; '...' }
    s.source           = { :path =&gt; '.' }
    s.source_files = 'Classes/**/*'
    s.public_header_files = 'Classes/**/*.h'
    s.dependency 'Flutter'
    s.dependency 'FacebookShare'
  
    s.ios.deployment_target = '8.0'
    s.static_framework = true
  end
  </code></pre>
  
  <p>In the sample project, the plugin refers to a local path. So I didn't receive any problem to install pod or run the project.
  After publish into "<a href="https://pub.dartlang.org/" rel="noreferrer">https://pub.dartlang.org/</a>".</p>
  
  <p>I try to use from dart packages in my project, I received a problem in installing pod. I attached the error below,</p>
  
  <pre><code>CocoaPods' output:
  ↳
        Preparing
      Analyzing dependencies
      Inspecting targets to integrate
        Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
      Fetching external sources
      -&gt; Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
      -&gt; Fetching podspec for `flutter_share_social_media` from `.symlinks/plugins/flutter_share_social_media/ios`
      Resolving dependencies of `Podfile`
      Comparing resolved specification to the sandbox manifest
        A Bolts
        A FBSDKCoreKit
        A FBSDKShareKit
        A FacebookCore
        A FacebookShare
        A Flutter
        A flutter_share_social_media
      Downloading dependencies
      -&gt; Installing Bolts (1.9.0)
        &gt; Copying Bolts from `/Users/jayaraj_m/Library/Caches/CocoaPods/Pods/Release/Bolts/1.9.0-ac656` to `Pods/Bolts`
      -&gt; Installing FBSDKCoreKit (4.40.0)
        &gt; Copying FBSDKCoreKit from `/Users/jayaraj_m/Library/Caches/CocoaPods/Pods/Release/FBSDKCoreKit/4.40.0-ae214` to `Pods/FBSDKCoreKit`
      -&gt; Installing FBSDKShareKit (4.40.0)
        &gt; Copying FBSDKShareKit from `/Users/jayaraj_m/Library/Caches/CocoaPods/Pods/Release/FBSDKShareKit/4.40.0-0e459` to `Pods/FBSDKShareKit`
      -&gt; Installing FacebookCore (0.5.0)
        &gt; Copying FacebookCore from `/Users/jayaraj_m/Library/Caches/CocoaPods/Pods/Release/FacebookCore/0.5.0-74288` to `Pods/FacebookCore`
      -&gt; Installing FacebookShare (0.5.0)
        &gt; Copying FacebookShare from `/Users/jayaraj_m/Library/Caches/CocoaPods/Pods/Release/FacebookShare/0.5.0-963b4` to `Pods/FacebookShare`
      -&gt; Installing Flutter (1.0.0)
      -&gt; Installing flutter_share_social_media (0.0.2)
        - Running pre install hooks
      [!] The following Swift pods cannot yet be integrated as static libraries:
      The Swift pod `FacebookCore` depends upon `Bolts` and `FBSDKCoreKit`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers =&gt; true` for particular dependencies.
      The Swift pod `FacebookShare` depends upon `Bolts`, `FBSDKCoreKit`, and `FBSDKShareKit`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers =&gt; true` for particular dependencies.
      The Swift pod `flutter_share_social_media` depends upon `Bolts`, `FBSDKCoreKit`, and `FBSDKShareKit`, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers =&gt; true` for particular dependencies.
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:135:in `verify_swift_pods_have_module_dependencies'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:415:in `validate_targets'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:118:in `install!'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
      /usr/local/lib/ruby/gems/2.5.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
      /usr/local/lib/ruby/gems/2.5.0/gems/cocoapods-1.5.3/bin/pod:55:in `&lt;top (required)&gt;'
      /usr/local/bin/pod:23:in `load'
      /usr/local/bin/pod:23:in `&lt;main&gt;'
  Error output from CocoaPods:
  ↳
      [!] `&lt;PBXGroup UUID=`97C146E51CF9000F007C117D`&gt;` attempted to initialize an object with an unknown UUID. `CF3B75C9A7D2FA2A4C99F110` for attribute: `children`. This can be the result of a merge and the unknown UUID is being discarded.
      [!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
  </code></pre>