-
Notifications
You must be signed in to change notification settings - Fork 1.6k
App crashes after manually updating GoogleTagManager to 7.1.1 #2059
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
Comments
I suspect that the GoogleAnalytics 3.x pod is not compatible with the recent GoogleTagManager version. I need to confirm, but It may not be possible to use the old GoogleAnalytics along with the recent FirebaseAnalytics and GoogleTagManager. |
Presumably the Podfile is asking for GoogleAnalytics to be installed |
I also tried installing pod from scratch, and it still used that version for Here is the the contents of the
|
Oh I see - GoogleAnalytics 3.17.0 is a dependency of GoogleTagManager. See https://cocoapods.org/pods/GoogleTagManager My hypothesis above was wrong. Something else is going on. I'll report it to the GoogleTagManager team. |
Yes it is. :) And thank you for the quick reply! I already wasted 2 days for this and was desperate for help. 😅 |
Tracked internally at b/119253176 |
@paulb777 we just noticed a big crash group related to this: #502. You suggested in that thread to update to Firebase 4.8.0. Since we really need to make
I'm not sure which versions of GTM and Messaging are compatible with Firebase 4.8.0. Thanks in advance! |
Updating our pods to:
We currently have the following versions:
So far the project builds without any issue and there is no crash at start up. Still need to implement |
Hi guys, my apoligies for using this thread for solving my issue. I'm facing similar issue though it happens after I decompile/compile the build via ixguard(code obfuscation) tool. My pods look as below:
And I have following versions:
I'm able to install my app and even I can finish onboarding flow for a new user.
If you see any issues with my pods or have some useful info for solution of this issue - please let me know. |
@VValiente We haven't been able to reproduce the issue, so likely need a reproducible example to make progress. @timurbeg Sounds like there might be an issue with ixguard. I'm not sure we'll be able to help. |
Closing for now. Will reopen with additional reproducible data. |
[READ] Step 1: Are you in the right place?
file a Github issue.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
NOTE: We use cocoapods to get the
GoogleTagManager
frameworks via a separate project, and then manually integrate the static frameworks into our Swift Project.With GoogleTagManager(6.0.0), our app is working fine, same for the GTM features. Now that we are planning to implement
FirebaseMessaging
, we decided to update GTM first so we can also use the latest version ofFirebaseMessaging
.After updating the frameworks, at launch, the app crashes immediately after this console line(.json filename is masked here):
And below is the stack trace:

Steps to reproduce:
Relevant Code:
Our pod file looks like this:
Here are the versions after the update:
However, some of the dependency frameworks are now just folders with just .h and .m files instead of
.framework
. Addinguse_frameworks!
didn't help.So we turned to the framework SDK zip and grabbed the following
.framework
s version instead(the version matched the ones from the cocoapods):And used the zip's
Firebase.h
andmodule.modulemap
.After setting up
LIBRARY_SEARCH_PATHS
to point correctly tolibGoogleAnalytics.a
, and replacingimport FirebaseAnalytics
withimport Firebase
, we were able to build the project.I already checked,
TAGRuntime.js.dat
is added toBuild Phases>Copy Bundle Resources
What am I missing?
The text was updated successfully, but these errors were encountered: