Question

I recently upgraded the RevMob SDK of my cocos2d project, using Xcode 4.5. Below is a code to show what I have done:

#import <StoreKit/StoreKit.h>
#import <RevMobAds/RevMobAds.h>

- (void) applicationDidFinishLaunching:(UIApplication*)application{
    [RevMobAds startSessionWithAppID:@"my app id"];
    //some code here...
}

On running the project, on device or simulator, the app crashes with this error:

+[RevMobAds startSessionWithAppID:]: unrecognized selector sent to class

However, one thing which might be useful, is that when I added the RevMob framework to my Xcode, it gave me compilation errors (using LLVM GCC 4.2) for which I followed this answer.

Was it helpful?

Solution

This method was included in version 5.0.0 (RevMob changelog), so make sure that the framework that you are using is at least 5.0.0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top