RevMob sdk 5.9.0 gives error on header file while

2019-02-18 12:54发布

I have already integrated RevMobs in my project. Now I just update it and download new sdk 5.9.0 and follow same step as before and also refer this link

RevMob ios sdk

But now i can't integrate it and while importing header file

#import <RevMobAds/RevMobAds.h>

it gives an error.

Please help me to solve it.

Here is my snap:

enter image description here

4条回答
smile是对你的礼貌
2楼-- · 2019-02-18 13:39

just go to header search path and add "$SCROOT" and make it recursive

查看更多
狗以群分
3楼-- · 2019-02-18 13:46

In my case When I followed steps as per SHARANYA's answer , i saw in my Build Phases there are no such files. Then, I tried to import it in Build Phase but could not import it.

When i added the Header Search Path i got the actual problem solved.

Hope this will Help Some One.

查看更多
你好瞎i
4楼-- · 2019-02-18 13:53

Ok, finally I managed to solve this. I read a lot of questions here, and searched online.

This article help me out a lot.

So, what happened to me, is that the library files, that were giving to me were missing some files and shortcodes.

So, I just:

  1. Downloaded the new version of the library. Link here.
  2. Copy to my project folder.
  3. Add it to the Header Search Path. (Build Settings, Search Path, Header Search Paths. Add something like $(PROJECT_DIR)/RevMobAds.framework)
  4. And a Clean, Build.
  5. And that's it.
查看更多
男人必须洒脱
5楼-- · 2019-02-18 13:54

One of these should work

1)Open the target of your project.
2)Open the the "Build Phases"
3)Expand the "Compile Sources"
4)Delete the filename that is causing the error
5)Add the file back.

OR

In Header Search Paths you will need to add the path for your files. To change this you will need to go to project's build settings and search for Header Search Paths and then add the path for your file

查看更多
登录 后发表回答