How to reference header files in Bridging-Header.h after updating CocoaPods to 0.36.x and above?

旧巷老猫 提交于 2019-11-29 22:49:25

In your Podfile, you specified use_frameworks!.

As a result, the Objective-C code you're including as a dependency (DBSphereTagCloud) is packaged as a framework, instead of a static library. Please see CocoaPods 0.36 - Framework and Swift Support for more details.

As a consequence, you don't need a bridging header file. It's enough for you to add:

import DBSphereTagCloud

in all the Swift files that need that module.

I had problems with this. My bridging header wasn't finding pod libs. I ended up finding out that I have to do this.

Mohammad Nurdin

Try this:

import  <DBSphereTagCloud/DBSphereView.h>
import  <DBSphereTagCloud/DBSphereView.h>

For me...

Original

import  "<Folder/File.h>"

Change to

import  <Folder/File.h>

In Project > Build Settings > Search Paths > Header Search Paths

Add:

"${PODS_ROOT}/Headers/Public/[Name of folder which pod files are contained in]"

Do that for every pod you installed

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