"_OBJC_CLASS_$_FIRApp not found" when using Admob C++ SDK in xcode

179 views
Skip to first unread message

MatkatMusic

unread,
Sep 13, 2018, 3:47:59 PM9/13/18
to Google Mobile Ads SDK Developers
Howdy.  I'm trying to use the Firebase Admob C++ SDK in my project for IOS and I'm stuck on this linker error in the subject.  

My project was created with the JUCE framework, which is a C++ cross-platform framework for writing audio apps and plugins.  JUCE has a tool called "ProJucer" which automatically generates a .xcodeproj file for you with search paths/compiler configs/etc specified by the user: 

Screen Shot 2018-09-13 at 12.44.48 PM.png


the only thing I'm currently doing in my project (a hello world project) is including the headers as described here: 
#include "firebase/admob.h"
#include "firebase/admob/types.h"
#include "firebase/app.h"
#include "firebase/future.h"

that results in the following linker errors: 

Screen Shot 2018-09-13 at 12.09.43 PM.png


Here are my search paths: 

Screen Shot 2018-09-13 at 12.35.50 PM.png


the Header Search Paths are:

Screen Shot 2018-09-13 at 12.36.01 PM.png


Compiler flags: 

-F/Users/Shevy/Dropbox/CharlesShared/firebase_cpp_sdk/frameworks/ios/universal/
-fno-aligned-allocation


the `-fno-aligned-allocation` is so I can compiler back to iOS 9.3


I'm **NOT** using Cocoa Pods to set up the project.  i'm just following the instructions here: 

  1. Download the Firebase C++ SDK. Extract the files somewhere convenient.

  2. Add the frameworks downloaded in the SDK to your Xcode project. Note that you only need to include the base Firebase framework, along with the frameworks that correspond to the services you want to use (refer to the dependencies section below). The easiest way to do this is usually just to drag them from a Finder window directly onto the project navigator pane in Xcode (left-most pane, by default - click the file icon at the top left).

I've been stuck on this error for a good 4 days.  does anyone have any idea how to solve this and get the framework working WITHOUT using CocoaPods? 


Thanks!


Chuck

MatkatMusic

unread,
Sep 13, 2018, 4:05:33 PM9/13/18
to Google Mobile Ads SDK Developers
just wanted to add, if I need to provide an Xcode Project file and source code, I can do that!  the JUCE framework is very popular among audio developers who write audio apps and plugins for not just mac and windows, but also android and iOS. 

mobileadssdk-a...@google.com

unread,
Sep 14, 2018, 3:51:43 AM9/14/18
to MatkatMusic, Google Mobile Ads SDK Developers
Hi,

Thank you for reaching out to us.

Could you provide to us the project you are working on so we can have a closer look on our end?

Regards,
Ivan Bautista
Mobile Ads SDK Team



On 09/14/18 04:05:33 matka...@gmail.com wrote:
just wanted to add, if I need to provide an Xcode Project file and source code, I can do that!  the JUCE framework is very popular among audio developers who write audio apps and plugins for not just mac and windows, but also android and iOS. 

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/bc170028-24a5-4992-bff6-e0e4b7b01845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MatkatMusic

unread,
Sep 14, 2018, 5:45:52 AM9/14/18
to Google Mobile Ads SDK Developers
Hi Ivan.  I got it working, actually.  I didn't know that I needed to first include all of the files normally included when you use CocoaPods to create the xcworkspace.  With that said, I am having trouble getting ads to appear.  I'll start a separate topic for that tho and share my C++ code that I'm using to display the ad. 

Chuck

mobileadssdk-a...@google.com

unread,
Sep 16, 2018, 10:46:55 PM9/16/18
to MatkatMusic, Google Mobile Ads SDK Developers
Hi Chuck,

I'm glad that you were able to resolve the Linker errors on your end.

Given that you are not using CocoaPods, it is correct that you have to manually include on your end the required frameworks specified for AdMob in this table.

As for the ads not appearing on your end, please note that there are a number of factors that could affect Ad serving. For this new issue, it is indeed best that you create a new thread with the details and we'll continue our investigation from there.

Regards,
Ivan Bautista
Mobile Ads SDK Team



On 09/14/18 17:45:51 matka...@gmail.com wrote:
Hi Ivan.  I got it working, actually.  I didn't know that I needed to first include all of the files normally included when you use CocoaPods to create the xcworkspace.  With that said, I am having trouble getting ads to appear.  I'll start a separate topic for that tho and share my C++ code that I'm using to display the ad. 

Chuck

On Friday, September 14, 2018 at 12:51:43 AM UTC-7, mobileadssdk-a...@google.com wrote:
Hi,

Thank you for reaching out to us.

Could you provide to us the project you are working on so we can have a closer look on our end?

Regards,
Ivan Bautista
Mobile Ads SDK Team



On 09/14/18 04:05:33 matka...@gmail.com wrote:
just wanted to add, if I need to provide an Xcode Project file and source code, I can do that!  the JUCE framework is very popular among audio developers who write audio apps and plugins for not just mac and windows, but also android and iOS. 

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages