title: Install native iOS pod in flutter
body: <p>I am facing an error while making a flutter plugin on the iOS side while using pods. The pods are installed successfully then also I am able to import them in the file.</p>
  <p>The pod in my case which I am trying to use is <a href="https://github.com/freshdesk/freshchat-ios" rel="nofollow noreferrer">Freshchat iOS SDK</a></p>
  <p>Steps I have followed to install the pod</p>
  <ol>
  <li><p>Start a new Flutter plugin project.</p>
  </li>
  <li><p>In <code>.podspec</code> file add <code>s.dependency 'FreshchatSDK'</code></p>
  </li>
  <li><p>Run <code>pod install</code> in <code>example/ios</code> folder.</p>
  <p>I got an error</p>
  <p><code>The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/nimish/FlutterProjects/freshchat_flutter/freshchat_flutter/example/ios/Pods/FreshchatSDK/FreshchatSDK/libFDFreshchatSDK.a)</code></p>
  </li>
  <li><p>I removed <code>use_frameworks!</code> from <code>podfile</code> following <a href="https://github.com/flutter/flutter/issues/20045#issuecomment-409492211" rel="nofollow noreferrer">this comment</a> .</p>
  </li>
  <li><p>I ran <code>pod install</code> again and the pods were successfully installed and <code>Pods</code> folder was created which had <code>FreshchatSDK</code> folder in it.</p>
  </li>
  </ol>
  <p><strong>Now I need to have <code>use_frameworks!</code> in my project because other plugins are not compiling because of this.</strong></p>
  <ol>
  <li><p>I added <code>s.static_framework = true</code> in <code>.podspec</code> and <code>use_frameworks!</code> in <code>podfile</code>. Now <code>pod install</code> ran successfully,</p>
  </li>
  <li><p>After I added the import <code>#import &quot;FreshchatSDK.h&quot;</code> in my <code>Plugin.h</code> file I got the error</p>
  <p><code>error: include of non-modular header inside framework module</code></p>
  </li>
  </ol>
  <p>I tried <a href="https://stackoverflow.com/questions/27776497/include-of-non-modular-header-inside-framework-module">this answer</a> but was not able to resolve it.</p>
  <p>Please help me resolve this. I'll be respectful of your time.</p>
  <p>There is another flutter plugin available <a href="https://github.com/fayeed/flutter_freshchat" rel="nofollow noreferrer">here</a> but it has many issues and one unhandled case is making my iOS app crash so I want to make it my own.</p>