Integration RevMob for Swift

** I have read the RevMob instructions for Swift and here I read the answer to Swift-RevMob's question, but that did not solve my specific problem. **

I am currently trying to display a full screen ad.

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 modules in my package as "Yes": enter image description here

This is my bridge header:

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

      

Finally, this is the error I get when I try to build my code: enter image description here

Thanks if you can help!

+3


source to share


3 answers


CLBeaconRegion

is part of Core Location since iOS 7, so you need to make sure the structure is linked to your project.

Note. In my experience, it's CLBeaconRegion

handpicked by Apple as part of an app review, and they often want to know how you use the beacons - even if the code just sits there and you don't plan on using it.



I was asked twice in the app review to provide a video of my app defining the beacon so they can see how it works, so either be ready to explain your usage or see if there is a version of the library without it built in.

+1


source


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



+1


source


I had the same problem. With CoreLocation.framework add AVFoundation.framework also. Hope it helps

0


source







All Articles