Bridging Header for Flurry.h not working with Pod

本小妞迷上赌 提交于 2019-12-10 16:10:08

问题


I have an existing bridging header that currently contains several obj-c pods. I am having issue importing the Flurry framework with Xcode saying

'Flurry.h' file not found

even though it has been correctly inserted using pods.

My bridging header currently looks like

#import <EstimoteSDK/EstimoteSDK.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import "Flurry.h" // <----- The Warning is here

I have tried several alternatives #import "FlurrySDK/Flurry.h" and #import <Flurry.h>

My Pod is imported with

use_frameworks!

pod 'FlurrySDK', '~>6.6' #Analytics

and is located here


回答1:


I was having this problem with XCode 7, Flurry 7.1 and with my cocoapods setup with 'use_frameworks!'

I originally changed the bridging header import to take the umbrella header which is

#import <Flurry_iOS_SDK/Flurry-iOS-SDK-umbrella.h> 

but as Allreadyhome pointed out just using the following in my swift files works the same

import Flurry_iOS_SDK



回答2:


The problem wasn't Flurry Podspec. I was running an older cocoapods so updated it using

sudo gem install cocoapods


来源:https://stackoverflow.com/questions/31705925/bridging-header-for-flurry-h-not-working-with-pod

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