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

Undefined symbol: _OBJC_CLASS_$GADxxxxxx #9

Open
CompassDevs opened this issue Jul 18, 2020 · 23 comments
Open

Undefined symbol: _OBJC_CLASS_$GADxxxxxx #9

CompassDevs opened this issue Jul 18, 2020 · 23 comments
Assignees

Comments

@CompassDevs
Copy link

I can't build due all these errors, i'm using your pre-compiled admod+share for godot 3.2.1

@GhostWalker562
Copy link
Owner

Did you make sure to link all the frameworks from the google admob SDK?
Did you make sure to add -ObjC linker flag as stated here “https://developers.google.com/admob/ios/quick-start“ Within “Manual Download” step 2?
Did you make sure to update your Info.plist with your GAD id?

These were all steps needed to build, if you may have skipped one of these you may want to do it and try again. If the problem persists, I will try to assist you further.

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@GhostWalker562
Copy link
Owner

This is a temporary fix found here kloder-games/godot-admob#90

Set the “ Build Active Architecture Only” to YES and try to run it on the simulator, if you can’t then try to run it on a real device.

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@GhostWalker562
Copy link
Owner

Going back to the project, did you link the frameworks? You may have put the frameworks in the frameworks folder but you also need to link them too. I found that in your steps you forgot to mention that. Make sure that you have linked GoogleMobileAds.framework
GoogleAppMeasurement.framework
GoogleUtilities.framework
PromisesObjC.framework
nanopb.framework

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@CompassDevs
Copy link
Author

CompassDevs commented Jul 19, 2020 via email

@GhostWalker562
Copy link
Owner

Okay, I think see the problem and lets hope this one gets it. So looking through the errors, it may seem that the frameworks from xcode and differentiate with the frameworks in the simulator. Navigate to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/ and see whether you have the admob sdk frameworks inside of that folder. If not, place the frameworks inside there and try to run again. And for some clarification, you were able to run it on your device, correct?

@CompassDevs
Copy link
Author

CompassDevs commented Jul 20, 2020 via email

@GhostWalker562
Copy link
Owner

I'm here to help :D It seems that we've gotten really close so lets hope we finish it.

  • So it looks like we're finally at the admobinterstial problem, are we running these interstitials with any other ads?
  • Did we also init the admob by using admob.init(is_real, instance_id)? Refer to https://github.com/kloder-games/godot-admob/blob/master/examples/godot-3/main.gd for an example.
  • Did you also link these
    StoreKit
    GameKit
    CoreVideo
    AdSupport
    MessageUI
    CoreTelephony
    CFNetwork
    MobileCoreServices
    SQLite (libsqlite3.0.tbd)
    frameworks?
  • Did you also check the internet connection?
  • There's a "Permission Error", did you make sure to set the correct permissions?

@CompassDevs
Copy link
Author

CompassDevs commented Jul 20, 2020 via email

@GhostWalker562
Copy link
Owner

Is this error thrown on the "real device" build? I'm getting quite stuck with this error because I am not sure where to find the solution.

@GhostWalker562
Copy link
Owner

I'm going to be recompiling the latest version of the module. The last issue we encounter besides the architecture and framework problems is this problem here, kloder-games/godot-admob#126. I was never notified that the current version of the module was outdated.

@GhostWalker562 GhostWalker562 self-assigned this Jul 20, 2020
@CompassDevs
Copy link
Author

CompassDevs commented Jul 21, 2020 via email

@GhostWalker562
Copy link
Owner

I would like you to redownload the release of the precompiled template and replace your previous one. I have re-compiled and updated it so that the issue on this thread '-[AdmobInterstitial initialize::]: unrecognized selector sent to instance 0x2828447b0' will no longer occur. This should be the last step and everything should be solved! 😃

@CompassDevs
Copy link
Author

CompassDevs commented Jul 21, 2020 via email

@GhostWalker562
Copy link
Owner

Yes, it will be located here

@CompassDevs
Copy link
Author

CompassDevs commented Jul 21, 2020 via email

@GhostWalker562
Copy link
Owner

I'm glad everything is going well! Have a great rest of your week. 😄

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