简体   繁体   English

ios - 将swift文件移动到Modern框架但丢失了Flurry Analytics功能

[英]ios - Moving swift files to Modern frameworks but losing Flurry Analytics functionality

I am adding in modern frameworks so I can use my existing code on a share extension. 我正在添加现代框架,以便我可以在共享扩展上使用我现有的代码。 The links on stackOverflow have been great but do not address how to maintain Flurry analytics in those models moved into the frameworks. stackOverflow上的链接非常好,但没有解决如何在移入框架的模型中维护Flurry分析。

I have the models in the new framework working no problem except some of those models had flurry log events. 我有新框架中的模型没有问题,除了一些模型有乱码日志事件。 I am getting 'use of unresolved identifier, Flurry' as an error message. 我正在使用“未解析的标识符,Flurry”作为错误消息。

I would like to continue using flurry in these events if possible but not clear on how to link my new library named "V2Core" to the Flurry Framework. 如果可能的话,我想继续在这些事件中使用flurry,但不清楚如何将名为“V2Core”的新库链接到Flurry Framework。

FYI. 仅供参考。 Flurry was working great prior to moving these files to the new framework. 在将这些文件移动到新框架之前,Flurry工作得很好。 Thanks in advance, 提前致谢,

I encountered the "use of unresolved identifier, Flurry" error message when I accidentally introduced a circular dependency into my frameworks. 当我不小心将循环依赖引入我的框架时,我遇到了“使用未解析的标识符,Flurry”错误消息。 Framework 'A' has Flurry.logEvent() calls and Framework 'B' also has Flurry.logEvent() calls. 框架'A'有Flurry.logEvent()调用,Framework'B'也有Flurry.logEvent()调用。 Framework 'A' included an "import B", but originally Framework 'B' was standalone and everything worked fine. 框架'A'包含“导入B”,但最初框架'B'是独立的,一切正常。 The moment I introduced "import A" into Framework 'B', the "use of unresolved identifier, Flurry" error message popped up. 当我将“import A”引入Framework'B'时,出现了“使用未解析的标识符,Flurry”错误消息。 If your code uses (or you can successfully introduce into your code) a variable of type FlurryEventRecordStatus and you can compare it to FlurryEventFailed in the same place as "use of unresolved identifier, Flurry" without Xcode complaining, that would be a tell-tale sign that you have a circular dependency, rather than Flurry just not being integrated into your build properly. 如果您的代码使用(或者您可以成功地在您的代码中引入)FlurryEventRecordStatus类型的变量,并且您可以将它与FlurryEventFailed在“使用未解析的标识符,Flurry”在没有Xcode抱怨的相同位置进行比较,这将是一个告诉表示你有一个循环依赖,而不是Flurry只是没有正确地集成到您的构建中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM