Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Error trying to create Gideros Player with Ads plugin — Gideros Forum

Error trying to create Gideros Player with Ads plugin

SimplesAppsSimplesApps Member
edited May 2014 in General questions
Hello @ar2rsawseen

I'm trying to build the Gideros Player for an iOS device with the Ads interface and I'm stuck with an error.
When building the project XCode fails with a semantic issue : "Use of undeclared identifier 'NSFoundationVersionNumber_iOS_6_1' at "Adslad.m".

Here is the code:

"
-(void)loadAd:(NSMutableArray*)parameters{
NSString *type = [parameters objectAtIndex:0];
if ([type isEqualToString:@interstitial]) {
HERE ==> if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 || [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
ADInterstitialAd *interstitial_ = [[ADInterstitialAd alloc] init];
interstitial_.delegate = self;
AdsStateChangeListener *listener = [[AdsStateChangeListener alloc] init];
[listener setShow:^(){
[AdsClass adDisplayed:[self class] forType:type];
[interstitial_ presentFromViewController:[AdsClass getRootViewController]];
}];
"

The XCode version is 4.5.1 (4G1004).

EDIT: I've found that in the NSObjCRuntime.h the entry required for "NSFoundationVersionNumber_iOS_6_1" is missing...

I suppose I have to update the XCode version? I don't want to update it because until now all is working...

Please, let me know.

Thanks.

Comments

Sign In or Register to comment.