Search code examples
iosrevmob

Undefined symbols for architecture i386 (RevMob)


I tried deleting everything RevMob ads related in my app, i didn't know how to do it properly so i firstly deleted the framework than erased all the line of code related to RevMob but now i have this error that i can fix:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_RevMobAds", referenced from:
objc-class-ref in AppDelegate.o

I found people having the same problem (not with RevMob but similar framework) but they we're searching to add it to the project, i'm trying to REMOVE it. If you could tell me what to remove in order that error, that would be awesome. Thanks!


Solution

  • In a file (probably called) AppDelegate.m, you are possibly including RevMob headers are using its objects. If not in that file, then in a file it includes.

    This error means that you had the headers at compile time to use RevMob, but you don't have the framework or library at link time (or the framework or library doesn't have the implementation of the object you are trying to use in the simulator build)