New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin for Google Mobile Ads SDK iOS 7.0.0 #68
Comments
You don't need the quotes around |
Hi Eric, Thanks for you valueable feedback, I used first option I have change this files as given bellow File: GADURequest.m
File: GADUBanner.m
File: GADUInterstitial.m
File: GADRequest.h (SDKFolder/GoogleMobileAds.framework/Headers/) I also made few changes in file GADUInterstitial.m and GADUInterstitial.h to pause unity in backend at time of interstitial is present in screen. (regarding that I have created a new Isssue #69) Thanks a lot Eric for suggestion for my last comment and reading this long comment on issue. |
Any progress? If not, can I have link to previous version downloads? |
Dear Eric, |
Please check my last comment, it's currently work for me in Unity 4.6.1p5 (using mono and IL2CPP backend) yet no issue I faced in my test project. this is temp. solution (not offical) for AdMob iOS 7.0.0, otherwise you can use AdMob iOS SDK 6.12.2 |
@PAHeartBeat Do you have any idea? I am running my project on Unity 4.6.2f1, Xcode 6.1.1, GoogleMobileAdsSdkiOS-7.0.0 and latest release of GoogleMobileAds.unitypackage (v2.1) |
@trungdq88 You can fix that by changing it to #import <GoogleMobileAds/GADRequest.h> and moving the Versions/A/Headers folder and Versions/A/GoogleMobileAds file to the root of the SDK directory. (you can remove the rest of the files and folders) |
Hi @trungdq88, That missing file is in side of AdMob iOS SDK (not in Unity Wrapper for AdMob SDK by Gogole). So I think you has forget about add AdMob iOS SDK in your XCode folder. You have to download iOS SDK from Google AdMob SDK Page and need to add manualy in your xcode proect (exported from your unity project) as instruction given in this link (https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start#manually_using_the_sdk_download) |
@PAHeartBeat @xzodia I actually added AdMob iOS SDK, I have just changed the line to Looks like a simple syntax error, I tried to put the brackets in several places but could not fix it (I am new to Xcode). Can you help me with that? |
Hi @trungdq88, I not faced this error when I am trying. I just have small guess about it. I thought you removed this line by mistke or you can try this one Google AdMob Team have updated (may a or two day ago) Unity Wrapper for iOS SDK 7.0.0, may be you are using that one and also implimenting changes which I have suggest. if you using old AdMob Wrapper which works good witht iOS SDK 6.12.2, please check My test project on GitHub. In that test project you have to just do one thing after insert iOS SDK 7.0.0. in xcode project open bellow given file and add these two line |
a619273 added support for iOS 7.0.0. Right now you'll need to grab the source files from the repo in Assets/Plugins/iOS, and replace them with the current files in your app. Also in your Xcode project, you'll want to make sure that "Enable modules" and "Link frameworks automatically" are both set to "Yes" in your build settings. |
Thanks everyone, |
Hi. I did all like you told. |
I found similar issue using latest admob plugin sdk. I have uploaded image that demonstrate some what my xcode log details. If I change my admob sdk version to 6.9.2 then it works perfectly on same project. I am using Unity 4.5.5p3 version to create for xCode build. Also I have used xCode 6.1 installed. Please give some suggestion where I was doing wrong. |
Solution: #77 |
Hello All, I am getting error Parse issue:Module 'GoogleMobileAds' not found when I use @import GoogleMobileAds; I tried using #import <GoogleMobileAds/GADInterstitial.h>, it says file not found. I am using this in appdelegate.m file Sample app from google for Interstitial also gives the same error. |
Have you enabled modules in your project settings?
|
yes @rampara .But still its not working |
Hello @ericleich @PAHeartBeat @trungdq88 I am not able to get it working, I am using interstial and banner ads both in my app, if I comment out interstial related code, my app builds properly, but if I uncomment interstitial retlated code, I get error saying Parse issue:Module 'GoogleMobileAds' not found when I use @import GoogleMobileAds; But before this while using SDK 12.12, I used to not get any error. I get error only when I use @import GoogleMobileAds in appDelegate.h file. Otherwise its fine |
Hello @ranjitk-plackal ... Did you managed to fix this issue ? - as i have the same problem which is driving me crazy ... Thanks malokuS |
I have removed pods completely and I am doing it manually @malokuS |
Thank you @ranjitk-plackal , finally managed to get it working. Best wishes , malokuS |
@malokuS weclome, how did you got it working. Please share. |
Ok @ranjitk-plackal , this was my case : I made a game with unity , so what i did was :
I don't know if you had the same procedure like me , but make sure to import the framework on xcode otherwise soft links can mess up and build will fail. |
@malokuS thanks :) |
you're welcome , hopefully it's working for you too @ranjitk-plackal Best regards , malokuS |
HI all, I have the same problems . 3 days in a row stuck on this so far. @malokuS : I'm sorry - I really cannot understand the steps you provided.
please help me - what am I doing wrong??? |
@Emils72 : I am facing the same problem as exactly your. (Unity 5.0.1, GoogleAdMod for Unity 2.2.1, GoogleMobileAds framework 7.2.1). Actually, Google Admob was working well with Unity 4.6.x, GoogleMobileAds 6.12.2 before). I also followed this thread for a month, but it's still impossible to fix this issue. |
@Emils72 @dothanhlam You should not have to re-import the Google Mobile Ads API. We have a quick start for integrating our Unity plugin in linked at https://developers.google.com/mobile-ads-sdk/docs/games#unity. When you say you "configured the GoogleMobileAds.framework (v7.2.1) in the build phases in xCode" are you manually importing the SDK into your Xcode project?
|
Hi rampara, dothanhlam, thanks for replying. as a result of adding files... GoogleMobileAds.framework module. Regards, |
@rampara, @dothanhlam
Et voilà! now I'm going to understand why it hangs during following simulator execution, but I did it at least through with compiling, it seems... next step to come! Regards, |
Hello, I believe you are only doing 1st part of import. There is also a part Tufan
|
check my answer. |
@rampara @mitralone @dothanhlam I have downloaded the latest unitypackage i.e Google Mobile Ads Unity Plugin v3.0.1 and I am using xcode 7 and unity 5.3.2 but everytime I got the error of GoogleMobileAds not found. Before that I have used 5.1 unity and encounter the same problem. I am attaching the screenshots. Please help. Regards, |
If you do not have CocoaPods installed, you will have to manually import the Google Mobile Ads iOS SDK into your Xcode project, as you did in past versions of the plugin. |
I have already done that. Yet no success. I have added all the frame frameworks and manually imported Google Mobile Ads iOS SDK (GoogleMobileAdsSdkiOS-7.6.0) and followed all the instructions. Regards, |
@vanshikakapoor, In my game admob ads for iOS working perfectly. `// Copyright 2014 Google Inc. All Rights Reserved. @import Foundation; #import "GADURequest.h" @implementation GADURequest
@end` I hope this become useful to you. |
@vanshikakapoor does the 'framework search paths' setting under build setting include the location of the Google Mobile Ads iOS SDK? |
My file is same, yet no success. |
@vanshikakapoor, I can help you in this because I have integrated same thing a month ago but at present I am so much busy in game. So when I become free, I post more details regarding my project so that you can compare with yours :) |
@siddharth3322 I have integrated Google admobs before 15 days before in my another game, but now its giving me headache. @rampara I have added the path as well |
@vanshikakapoor, Which other plugins exist into your game? |
@siddharth3322 Flurry |
@vanshikakapoor, are you getting above image error, right? |
@vanshikakapoor If you can provide a link to a Xcode project where this error is reproducible, it can help me investigate further. |
@rampara here is my full xcode project. https://www.dropbox.com/s/wpv0regmxsmb6ny/dotiOS.zip?dl=0 |
@vanshikakapoor your project referenced the Google Mobile Ads framework but did not include it under any of paths listed under 'framework search paths'. Once I added the framework to your project, I was able to build and run without issue. Adding a framework to your Xcode project on newer versions of Xcode will not automatically update your 'framework search paths'. You will have to update your build setting manually, or copy the framework to one of the paths already listed under 'framework search paths'. |
@rampara Can you please enlighten me more about this. If you can share some screenshots it will be great help . |
Hi every body i removed the cocoa pods using I downloaded the google ad mob framework from 7.7 and then integrate it manually in the iOS project it is working perfect now. |
rampara, please deintegrate with cocoapods. |
@ourangzeb |
If you do not want to use Cocoapods (which is the recommended approach for including the GMA SDK) you can include the iOS GMA SDK within the |
Version 7.0.0 of the iOS SDK breaks the plugin. The imports have changed due to SDK being released as a framework, and it makes use of a couple methods that have been removed/renamed, such as GADAdMobExtras.
The text was updated successfully, but these errors were encountered: