2

Came across a topic with similar problem, but was unable to solve it.

Integrated Admob ads in Unity app for ios and loaded the project in XCode. Added framework GoogleMobileAds simply dragging it into the project window. Unfortunately when you build the project the error is displayed.

I tryed replace GoogleMobileAds.h on #import <GoogleMobileAds/GoogleMobileAds.h> in GADUNativeCustomTemplateAd.h but it not help me.

Used Google Mobile Ads Unity Plugin v3.0.4 Xcode v. 7.3.1 Error: umbrella header googlemobileads h not found 1 img 2 img

Bear Heaven
  • 21
  • 1
  • 3
  • in project settings, set 'Enble C/C++ module' to YES – Guru Jul 28 '16 at 13:19
  • Nothing failed. I added all, except for Sqlite (missing in Xcode, I don't know where to download). With 4 frameworks still have this 2 errors/ I checked C++ module - it works but not compiling – Bear Heaven Jul 30 '16 at 13:49
  • http://stackoverflow.com/questions/29485189/module-googlemobileads-not-found-in-ios – Guru Jul 30 '16 at 14:24
  • Did you finally found a solution to your problem ? I'm in the same spot and can't find any working solution. – Chris R. Feb 20 '17 at 15:14

2 Answers2

2

I finally found the solution in this video https://www.youtube.com/watch?v=rxO_rcMxGU4, here is a summary:

  1. Download googlemobileadssdkios.zip from https://firebase.google.com/docs/admob/ios/download

  2. Unzip file. Go to Project Navigator View. Move the unzip file inside the Framework folder.

  3. Build the code, if it doesn't work then substitute the string that gives error with

    • (void)loadRequest:(GADRequest *)request withAdUnitID:(NSString *)adUnitID userID:(NSString *)userID {

[self.rewardBasedVideo loadRequest:request withAdUnitID:adUnitID]; }

Nil
  • 129
  • 4
  • 11
0

Check whether you have added the following libraries

  • Sqlite
  • Core data
  • System Configuration
  • libz
  • adSupport

add these libraries in the "Frameworks and Libraries" in Project settings