'RevMobAds/RevMobAds.h' 找不到文件错误

'RevMobAds/RevMobAds.h' file not found error

我知道这个问题被问了很多,但我还是找不到正确的答案。

我只是按照网站 revmob 指南中的步骤操作。 我已经完成了 cocoa pods 部分,因为我不知道如何制作 pods 文件并且我的帐户不在 sudoers 文件中所以我无法在终端中使用 sudo 命令.但是我需要做这部分吗?

是的,我已经删除并重新删除了 Xcode 中的框架。 这是它的样子:

并在项目文件夹中:

那些人知道哪里出了问题吗? 请告诉我

更新:

有人可以帮忙吗?
或者至少说我是否需要做 cocoapods part.

这个问题的答案可以找到here:

The issue is due XCode not correctly finding the RevMob framework.

To correct the issue, what shall be done is to remove the framework, and then redrop it. But, this time, make sure to check both the "Copy items if needed" and "Create folder references" boxes.

If all the other settings are right, as per the tutorial, your project should build now.

如果您将框架拖到项目中,则需要解决一些问题。

您可以将文件复制过来(黄色文件夹)或为它们创建文件路径(蓝色文件夹)。如果创建文件路径,则必须在项目的 "Build Settings".

中将 "Framework Search Header" 设置为 file/folder

我遇到了一个问题,如果我不将文件复制到 pre-made "Frameworks" 组,我将无法导入 headers。试一试。