iosswiftxcodeunityads

adding UnityAds to my Swift game project


i am trying to ad Video reward ads using UnityAds to my swift game project , so i copied the sdk and the bundle to my project and then went to my gameviewcontroller file and added

import UnityAds 

but i keep getting an error saying no such module 'UnityAds'

so i tried adding a bridge to my project and named it bridge.h and added this line of code to it

#import <UnityAds/UnityAds.h>

and it still doesn't work , and i feel i am missing something but can't find what it is, can someone help me please


Solution

  • Since you reference a bundle, it seems that you are attempting to integrate SDK 1.5 according to the SDK 2.0 instructions.

    Get the latest 2.0 release from here.

    Follow the video integration guide here, note that dialog at 1:19 - ensure that you have the 'Copy items if needed' checkbox selected.