title: How to import a Cocoapod into an App Extension?
body: <p><a href="https://i.stack.imgur.com/7y24l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7y24l.png" alt="enter image description here"></a>Using Pinterest's iOS SDK via Cocoapods and a bridging header, works fine in my app.</p>
  
  <p>Created new target -> action extension in my project.  Have tried linking PDK framework in Linked Frameworks and Libraries, have tried adding a separate bridging header file in the extension, but Xcode crashes not being able to find it....   Any ideas on how to import it? </p>
  
  <p>podfile: </p>
  
  <pre><code>platform :ios, '9.0'
  
  pod "PinterestSDK", :git =&gt; "git@github.com:pinterest/ios-pdk.git"
  
  pod "PINRemoteImage"
  
  pod "GBDeviceInfo"
  
  pod 'FBSDKCoreKit'
  
  
  
  xcodeproj '/Users/garysabo/Dropbox/Xcode Projects/pinFixer2/pinFixer2.xcodeproj'
  </code></pre>
  
  <p>bridging header: </p>
  
  <pre><code>#import "PinterestSDK.h"
  #import "PDKPin.h"
  #import "PDKBoard.h"
  #import "PDKImageInfo.h"
  #import "PDKResponseObject.h"
  #import "PDKClient.h"
  #import "PDKModelObject.h"
  #import "PDKUser.h"
  </code></pre>