Google Analytics Pod会安装太多的依赖项

编程入门 行业动态 更新时间:2024-10-17 04:57:06
本文介绍了Google Analytics Pod会安装太多的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚列入Google Analytics Pod,详情请参阅其iOS开发人员指南:

I've just included the Google Analytics Pod as described in their iOS developer guide with:

pod 'Google/Analytics'

运行时

pod install

它会安装以下依赖项:

it installs the following dependencies:

Installing FirebaseAnalytics (3.2.0) Installing FirebaseInstanceID (1.0.6) Installing Google (3.0.3) Installing GoogleAnalytics (3.14.0) Installing GoogleInterchangeUtilities (1.2.1) Installing GoogleSymbolUtilities (1.1.1) Installing GoogleUtilities (1.3.1)

因为我没有使用Firebase,我想摆脱 FirebaseAnalytics 和 FirebaseInstanceID (以及框架本身不需要的所有豆荚)。

Since I don't use Firebase, I would like to get rid of the FirebaseAnalytics and FirebaseInstanceID (as well as all pods that are not needed by the framework itself).

安装未使用的依赖cies只会扩大我的应用程序大小。我只想安装绝对最低数量的广告连播,以便GoogleAnalytics正常运行。

Installing unused dependencies only bloats up my app size. I would like to only install the absolute minimum amount of pods to get GoogleAnalytics running.

关于如何将未使用的广告Pod踢出的想法?

Any ideas on how to kick the unused Pods out?

推荐答案

正如这个答案,您可以使用:

As seen in this answer, you can use:

pod 'GoogleAnalytics'

...以避免安装依赖项。请注意,您需要在桥接头文件中更改您的Objective-C导入;我至少需要: $ b

…to avoid installing the dependencies. Note that you'll need to change your Objective-C imports in your bridging header file; I needed at least:

#import <GoogleAnalytics/GAI.h> #import <GoogleAnalytics/GAIFields.h> #import <GoogleAnalytics/GAIDictionaryBuilder.h>

更多推荐

Google Analytics Pod会安装太多的依赖项

本文发布于:2023-11-24 02:14:13,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太多   Google   Analytics   Pod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!