godot-admob-android: [BUG] Error compiling Godot for iOS with module for version 3.2.4 beta 5

Describe the bug I’m trying to compile godot using Godot-AdMob-Android-iOS as a module, but I’m getting forward declaration errors in the iOS source:

Screen Shot 2021-01-11 at 10 03 26 PM

To Reproduce Steps to reproduce the behavior:

  1. Place ios/admob contents into godot/modules/admob
  2. Place google *.framework directories into godot/modules/admob/lib
  3. Run scons p=iphone target=debug

Expected behavior Builds an ios *.a file

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Latest Godot-AdMob-Android-iOS as of this writing
  • Latest godot from git

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 39 (23 by maintainers)

Commits related to this issue

Most upvoted comments

@gustavottc Busy day! Just wanted to chime in here that I’ve pulled your latest changes as of 20 minutes ago, compiling against the 3.2 HEAD on godot and it looks like everything is working just as it was when I was using the precompiled versions earlier this week. Thanks to you as well @naithar!

https://github.com/godotengine/godot/blob/8b6357cf28944301dc816b2bd07900c16396f7a7/platform/iphone/os_iphone.mm#L710-L44

This two functions should probably cover your case, but it requires testing anyway.

Yeah, I’ve finally managed to setup project and everything is working fine after singleton name change, but I guess basic stuff for upgrading is done. Your should probably fix other warning just to make compiler happy.

I’ve also encountered your previous issue: https://github.com/godotengine/godot/issues/44681. I’m still not sure how to reproduce it 100%, but I’ll take a closer look when I can.

Since your GDScript singleton and AdMob module singleton have the same name, Godot is probably mistaking one for another when module is actually compiled.