问题
In my xcode workspace (using cocoapods), I am not able to add Flurry.h
in my bridging header. Other headers from other pods like Dropbox, etc are working fine. Only Flurry headers are not being recognized.
I have my podfile as below:
platform :ios, '9.0'
use_frameworks!
pod 'Alamofire', '~> 3.1'
pod 'SwiftyDropbox', '~> 2.0.3'
pod 'Flurry-iOS-SDK/FlurrySDK'
pod 'Flurry-iOS-SDK/FlurryAds'
pod 'Parse'
My Bridging Header is as below (with the problem highlighted!):
Here is the Pods project structure:
As you can see above, the SwiftyDropbox.h
is imported without issues, but not Flurry.h
(or any other header inside the Flurry-iOS-SDK). What am I missing?
Versions used: Using Alamofire (3.1.4) Using Bolts (1.5.1) Using Flurry-iOS-SDK (7.3.0) Using Parse (1.11.0) Using SwiftyDropbox (2.0.3))
回答1:
Cocoapods 0.36 and later uses the use_frameworks! statement which means that bridging header is not required for importing Objective-C pods in Swift
来源:https://stackoverflow.com/questions/34565138/flurry-h-not-found-through-bridging-header-when-using-cocoapods