-
Hi folks, I've successfully migrated my Cocos2d-x project to Axmol and it works beautifully. Next, I'd like to create a free version of the app that will be monetized with ads. As Axmol is a C++ engine, I've decided to use the Firebase Google Mobile Ads C++ SDK (This is my first time incorporating ads in a project so if there is a better way, please let me know). I'm following the instructions in the readme.md file of the provided test app. The instructions had me register my iOS app with Firebase. As a result of these steps, I've downloaded a configuration file called GoogleService-Info.plist which I am instructed to "move into the root of my Xcode project". This is where things get blurry. Podfile installations have turned my Xcode project into an Xcode workspace. Is the "root of my project" the root of the Axmol project, is it the build_ios_arm64 folder, or some other folder like proj.ios_mac? My Podfile is in the Axmol root but its first line is Also, dragging and dropping GoogleService-Info.plist into my project next to Info.plist won't work (I know, I've tried). The sample Firebase code compiles and runs but I can tell it can't find the config file because, in the output window, I get messages like the following:
In CMakeLists.txt, Info.plist is handled by specific instructions like:
and
Should I be doing something similar for GoogleServices-Info.plist? Any insight on how to proceed would be greatly appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Have you tried adding the The file will then be treated as a resource that is copied across to the output bundle. When Firebase runs, it'll find the file. I know this works because I'm using it too, and there should be nothing else required to get it working. After this re-run To verify that it the file is referenced by the project correctly, go to |
Beta Was this translation helpful? Give feedback.
Have you tried adding the
GoogleService-Info.plist
into the<project>/Contents
folder? Once you do that, re-generate the project (viaaxmol build ... -c -f
or whatever cmake command you used to generate it etc.). For theaxmol build
command, make sure you pass-f
to it in order to force it to regenerate the project, since cmake may not automatically detect changes in theContents
folder.The file will then be treated as a resource that is copied across to the output bundle. When Firebase runs, it'll find the file. I know this works because I'm using it too, and there should be nothing else required to get it working.
After this re-run
pod install
, then open up the workspace.To verify tha…