Flurry.h not found through bridging header when using cocoapods

主宰稳场 提交于 2019-12-11 13:52:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!