如何将 GoogleAnalytics 标头导入库框架? [英] How to import GoogleAnalytics header into a library Framework?

查看:24
本文介绍了如何将 GoogleAnalytics 标头导入库框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的项目创建了一个库框架,并且我希望该框架能够依赖于 Google Analytics 库.如何将标头导入框架,因为与应用程序目标不同,框架没有桥接头?并且在框架的公共头文件中导入 Google Analytics 标头会产生其他意外错误(包括框架模块内的非模块化标头).

I create a library framework for my project and I want the framework to be able to depend on Google Analytics library. How do I import the headers into the framework because unlike an app target, framework doesn't have a bridging header? And importing the Google Analytics headers inside the framework's public header file will give other unexpected errors (include of non-modular header inside framework module).

推荐答案

HI 你可以添加 Google Analytics 的 Pod然后你可以在你的应用程序中使用它添加 pod 点击下面的链接并按照步骤操作.

HI you can add Pod of Google Analytics then you can use of this in your app add pod click the link below and follow the steps.

https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift

希望有帮助.

这篇关于如何将 GoogleAnalytics 标头导入库框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆