2

I am unable to find the problem of this Error. Can anyone guide me. How to fix given below error. I had added the revmob sdk in my project and i had also checked the box "Copy to destination if needed." And i also checked it is there in the xcode project. but still given below error is not going. This not my first time i am integrated revmob. but do not know why suddenly this error starts appearing even this code is working fine before.

Error 'RevMobAds/RevMobAds.h' file not found

Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83

3 Answers3

2

Right Click on your App in groups and files section, Select Add files to "your app"....

Once you do that, select folder you want to add and select "Copy items into destination group's folder (if needed)" as shown in screenshot below.

Note: Copy items into destination group's folder (if needed) is to be selected only if the files are physically in some other folder and not the application bundle or application folder.

Jitendra
  • 5,055
  • 2
  • 22
  • 42
  • Sounds right, this error occurs if the files weren't copied into the application's folder when you first added the Revmob Framework. – FractalDoctor Jul 04 '13 at 14:52
2

I call this the "Phantom Folder issue"...

I had an issue where I deleted the RevMobAds.framework from within Xcode but when I tried to re-add the newer SDK by dragging and dropping into Xcode into a different folder (copy was checked and targets were checked), it would appear then give me the same error: 'RevMobAds/RevMobAds.h' file not found

It turns out that when I checked the real project folder in Finder (not from within Xcode) that an empty RevMobAds.framework folder was left behind.

So what I did was:

(1) From Xcode, deleted the RevMobAds.framework that I had added.

(2) Went to the real project folder in Finder and deleted any phantom/leftover folders named RevMobAds.framework that were still there.

(3) Dragged the RevMobAds.framwork SDK back into Xcode (making to sure to check COPY and targets).

And this solved the problem for me.

jsherk
  • 6,128
  • 8
  • 51
  • 83
  • if it still do not solve the problem then go to header search path in project seting and delete the old refrences and add correct refrence to the revmobads.framework folder. http://stackoverflow.com/a/16854620/644149 – Iqbal Khan Mar 17 '14 at 06:31
0

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.