RevMob sdk 5.9.0 gives error on header file while import <RevMobAds/RevMobAds.h>

房东的猫 提交于 2019-12-19 09:19:41

问题


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:


回答1:


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




回答2:


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




回答3:


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.




回答4:


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.


来源:https://stackoverflow.com/questions/16853732/revmob-sdk-5-9-0-gives-error-on-header-file-while-import-revmobads-revmobads-h

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