Skip to content
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

Error: no known class method for selector 'getviewController' #151

Open
facsampaio opened this issue Oct 30, 2020 · 2 comments
Open

Error: no known class method for selector 'getviewController' #151

facsampaio opened this issue Oct 30, 2020 · 2 comments

Comments

@facsampaio
Copy link

OS target (Android/iOS):
iOS

Godot version:
3.2.1 (stable)

Issue description:
I'm trying to recompile the export template. I've been running into some issues, but, apparently, I worked around them. However, this one I can't figure it out.

Error:
modules/admob/ios/src/AdmobBanner.mm:17:35:{17:35-17:52}: error: no known class method for selector 'getviewController' [5]
rootController = [AppDelegate getViewController];
ˆ
I can't seem to find this getViewController on AppDelegate. Can someone help me with this error?

Expected:
Recompile - success

@gumaciel
Copy link
Collaborator

@facsampaio , what xcode version and your mac os version? try to update they because on Mac OS 10.15 seems its working,

you if want to, i am working on a new updated module: https://github.com/Poing-Studios/Godot-AdMob-Android-iOS you're welcome to test

@facsampaio
Copy link
Author

facsampaio commented Oct 30, 2020

@gustavottc, both are up to date, I'm afraid.
Xcode 12.1 and macOS Catalina 10.15.7

It actually didn't go smoothly.
I had trouble with the MAJOR_VERSION being 4 and the if statements being MAJOR_VERSION == 3 (I used >= to 'fix' that). After that, there was a problem with identifying the Banner, Interstitial and Rewarded classes, so I imported those inside the ifdef OBJC in the godotAdmob.h file. Then, a problem with release/dealloc and ARC permission, which I saw some people say we shouldn't use that, so I commentted these calls.

Now, after dealing with each one, there's this one.

I'll try yours. Thanks!

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

No branches or pull requests

2 participants