简体   繁体   中英

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.

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.

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.

FYI. Flurry was working great prior to moving these files to the new framework. Thanks in advance,

I encountered the "use of unresolved identifier, Flurry" error message when I accidentally introduced a circular dependency into my frameworks. Framework 'A' has Flurry.logEvent() calls and Framework 'B' also has Flurry.logEvent() calls. Framework 'A' included an "import B", but originally Framework 'B' was standalone and everything worked fine. The moment I introduced "import A" into Framework 'B', the "use of unresolved identifier, Flurry" error message popped up. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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