3

**I have read the RevMob instructions for Swift and I have read an answer to an Swift-RevMob question on here, but it didn't resolve my particular issue. **

I am currently trying to get a fullscreen ad to show.

This is my GameViewController.swift:

verride func viewDidLoad() {
super.viewDidLoad()


//Start RevMob code
let completionBlock: () -> Void = {
    // do something when it successfully starts the session
     RevMobAds.session().showFullscreen();
}
let errorBlock: (NSError!) -> Void = {error in
    // check the error
    println(error);
}
RevMobAds.startSessionWithAppID("55770fcc17dd7840727aa5e8",
    withSuccessHandler: completionBlock, andFailHandler: errorBlock);

//End of RevMob Code

I have defined the modules in my package as "Yes": enter image description here

This is my Bridge-Header:

//  Use this file to import your target's public headers that you would like to expose to Swift.
#import <RevMobAds/RevMobAds.h>

Lastly, this is the error that I am currently getting when I try to build my code: enter image description here

Thanks if you can help!

mprithibi
  • 442
  • 2
  • 9

3 Answers3

1

CLBeaconRegion is part of Core Location from iOS 7 on, so you need to make sure the framework is linked in your project.

Note: in my experience, CLBeaconRegion is picked up by Apple as part of app review and they often want to know how you're using beacons – even if the code is just sitting there and you're not planning to use it.

Twice now I have been asked by app review to provide a video of my app detecting a beacon so they can see how it works, so either be prepared to explain your usage or see if there's a library version without it built in.

TwoStraws
  • 12,862
  • 3
  • 57
  • 71
1

In addition to the required frameworks, you have to add CoreLocation.framework

Ramzi
  • 11
  • 1
0

I had the same issue. With CoreLocation.framework, also add AVFoundation.framework. Hope that helps

Asif Alamgir
  • 1,454
  • 1
  • 16
  • 41