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:
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
just go to header search path and add "$SCROOT" and make it recursive
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.
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:
- Downloaded the new version of the library. Link here.
- Copy to my project folder.
- Add it to the Header Search Path. (Build Settings, Search Path, Header Search Paths. Add something like $
(PROJECT_DIR)/RevMobAds.framework
)
- And a Clean, Build.
- And that's it.