Google 未找到跟踪代码管理器容器 ios swift

Google Tag Manager Container not found ios swift

我目前正在尝试在我的 iOS 应用程序中包含 Google 跟踪代码管理器(使用 Xcode 8 和 Swift 3)但是 XCode 不知何故不能找到容器。我按照官方 Google 文档 here.

中写的步骤操作

我得到的错误是:

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.

我已经发布了容器并且是 运行 它的新版本,但似乎出现了上述错误。

通过创建新容器并选择 "iOS(Legacy)" 而不是 "Firebase" 解决了该问题。当我使用 Google 跟踪代码管理器访问 Google 分析时,我不得不实际使用 "iOS(Legacy)" 设置。