Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Cannot find 'kGADAdSizeBanner' in scope #133

Closed
erperejildo opened this issue Feb 4, 2022 · 17 comments
Closed

Cannot find 'kGADAdSizeBanner' in scope #133

erperejildo opened this issue Feb 4, 2022 · 17 comments

Comments

@erperejildo
Copy link

I'm getting this issue that stops me from compiling on iOS. Using 1.5.0.

Android is fine

@wph144
Copy link

wph144 commented Feb 6, 2022

same issue

@yusriltakeuchi
Copy link
Contributor

Same issue

@ahde46
Copy link

ahde46 commented Feb 8, 2022

same issue here

@erperejildo
Copy link
Author

@bdlukaa any update about this?

@yusriltakeuchi
Copy link
Contributor

Maybe someone can fix this issue and put into new git repository.
I think the author is really busy...

@erperejildo
Copy link
Author

Maybe someone can fix this issue and put into new git repository. I think the author is really busy...

maybe this comment helps?

https://stackoverflow.com/a/71035981/4858133

@erperejildo
Copy link
Author

Maybe someone can fix this issue and put into new git repository. I think the author is really busy...

This is blocking my iOS update. Don't mind to hear that but at least something just to know I can wait or not

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 9, 2022

Hello! Please, see #58. I don't have a mac neither an iphone to give you support. All the ios support come from the community

@erperejildo
Copy link
Author

erperejildo commented Feb 10, 2022

We really need to have support for both platforms since Flutter users are facing many problems related to showing ads.

I asked the question there but not having a iOS support is a really a negative point IMO when the opportunity to make this package more standard is perfect now:

@yusriltakeuchi
Copy link
Contributor

@erperejildo hey bro, maybe you can try this solution, it's work for me.
But i hope the author will updating this issue.

In native_admob_flutter/ios/Classes/Banner/BannerAdView.swift line 9:
try change from:

private var adSize: GADAdSize = kGADAdSizeBanner

to :

private var adSize: GADAdSize = GADAdSizeFromCGSize(CGSize(width: 320, height: 100))

This is just create a default adSize when you're not inserting custom size.
The condition can be found in line 38

@erperejildo
Copy link
Author

thanks for that @yusriltakeuchi. I see that it's merged already

@erperejildo
Copy link
Author

erperejildo commented Feb 13, 2022

@bdlukaa I see you closed this but any plans to release this soon? I get this error with above fix:
'FLTGoogleMobileAdsPlugin.h' file not found on #import "FLTGoogleMobileAdsPlugin.h"

When I try to update pods and everything the package removes the manual change

@felixgabler
Copy link

Hi, my app release is also blocked because of this issue. Could you please release another update? 🙏

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 17, 2022

You can use the master branch as your dependencies:

dependencies:
  native_admob_flutter:
    git: https://github.com/bdlukaa/native_admob_flutter.git

@erperejildo
Copy link
Author

You can use the master branch as your dependencies:

dependencies:
  native_admob_flutter:
    git: https://github.com/bdlukaa/native_admob_flutter.git

why not releasing a new version?

@naamapps
Copy link

Facing this issue too.
@bdlukaa please deploy to pub.dev.
Using the git dependency is not the best practice.

@erperejildo
Copy link
Author

can we open this issue again until it is deployed please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants