07-20-2023, 07:57 AM
[![enter image description here][1]][1]Using Pinterest's iOS SDK via Cocoapods and a bridging header, works fine in my app.
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?
podfile:
platform :ios, '9.0'
pod "PinterestSDK", :git => "[email protected]:pinterest/ios-pdk.git"
pod "PINRemoteImage"
pod "GBDeviceInfo"
pod 'FBSDKCoreKit'
xcodeproj '/Users/garysabo/Dropbox/Xcode Projects/pinFixer2/pinFixer2.xcodeproj'
bridging header:
#import "PinterestSDK.h"
#import "PDKPin.h"
#import "PDKBoard.h"
#import "PDKImageInfo.h"
#import "PDKResponseObject.h"
#import "PDKClient.h"
#import "PDKModelObject.h"
#import "PDKUser.h"
[1]:
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?
podfile:
platform :ios, '9.0'
pod "PinterestSDK", :git => "[email protected]:pinterest/ios-pdk.git"
pod "PINRemoteImage"
pod "GBDeviceInfo"
pod 'FBSDKCoreKit'
xcodeproj '/Users/garysabo/Dropbox/Xcode Projects/pinFixer2/pinFixer2.xcodeproj'
bridging header:
#import "PinterestSDK.h"
#import "PDKPin.h"
#import "PDKBoard.h"
#import "PDKImageInfo.h"
#import "PDKResponseObject.h"
#import "PDKClient.h"
#import "PDKModelObject.h"
#import "PDKUser.h"
[1]: