title: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead
body: <p>I am using following pods in a Share Extension. The complier is keep showing error:
  sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead. in every library on [UIApplication sharedApplication] line</p>
  <ol>
  <li><p>I installed all libraries in the Share Extension target.</p>
  </li>
  <li><p>I have four targets including Share-Extension in my project and I have set “AppExtension flag is NO” for each target.
  Still appear errors.</p>
  </li>
  </ol>
  <p>Target -&gt; Build Settings -&gt; Require Only AppExtension-Safe API -&gt; NO</p>
  <p>My Podfile:</p>
  <pre><code>platform :ios, '11.2'
  def shared_pods
  use_frameworks!
  source 'https://github.com/CocoaPods/Specs.git'
  
  pod 'XMPPFramework', :git =&gt; &quot;https://github.com/robbiehanson/XMPPFramework.git&quot;, :branch =&gt; 'master'
  
  pod 'MBProgressHUD'  
  
  pod 'GoogleMaps'
  
  pod 'GooglePlaces'
  
  pod 'AccountKit'
  
  pod 'Alamofire', '~&gt; 4.5'
  
  pod 'AlamofireImage', '~&gt; 3.3'
  
  pod 'SVProgressHUD'
  
  pod 'SDWebImage', '~&gt; 4.1.1'
  
  pod 'AWSS3', '~&gt; 2.6.0'
  
  pod 'Fabric'
  
  pod 'Crashlytics'
  
  pod 'Firebase/Core'
  
  pod 'Firebase/Messaging'
  
  pod 'ReverseExtension'
  
  end
  
  target ‘Production' do
      shared_pods
  end
  
  target ‘Development’ do
      shared_pods
  end
  
  target ‘Testing’ do
      shared_pods
  end
  </code></pre>