1
votes

I am currently trying to include Google Tag Manager in my iOS application (using Xcode 8 and Swift 3) but XCode somehow cannot find the container. I followed the steps written in the official Google Document here.

The error I got was:

GoogleTagManager warning: Cannot find binary resource file 'GTM-xxxxJ'.

GoogleTagManager warning: Cannot find resource file 'GTM-xxxxJ.plist'.

GoogleTagManager warning: Cannot find resource file 'GTM-xxxxJ.json'.

GoogleTagManager error: No default container found; creating an empty container.

I have published the container and am running the new version of the it, yet seem to get the above error.

1
It would be great if you could add what you tried to do exactly rather than linking to an external resource. Other than that good job on a first question! - Julian E.
Thank you for the feedback! Will keep that in mind the next time I post a question. Fixed the problem! When I set up the container, I chose "Firebase" when I should have chosen "iOS(legacy)" (as I am using Google Analytics for the tags) - sabrinazuraimi
Could you please then answer the question below? It will help others struggling with a similar problem. Thank you - Julian E.
The question below? Do you mean the question about what I tried to do exactly? - sabrinazuraimi
You mentioned that you managed to fix the problem. It would be great if you could answer your own question on how you fixed it :) - Julian E.

1 Answers

0
votes

Fixed the problem by creating a new container and choosing "iOS(Legacy)" instead of "Firebase". As I am using Google Tag Manager to access Google Analytics, I had to actually use the "iOS(Legacy)" setting.