Firebase-ios-sdk: Disable building FirebaseAnalytics for Catalyst with SwiftPM

Created on 26 Nov 2020  路  9Comments  路  Source: firebase/firebase-ios-sdk

@khuffie I'm not sure what's happening. It looks like somehow your app is trying to link GoogleAppMeasurement.framework dynamically instead of statically. Are you able to reproduce with https://github.com/firebase/quickstart-ios/tree/master/analytics?

Firebase Performance is not yet available via SPM.

@LualdiD With a quick investigation, I don't see an immediate way to disable Catalyst building for Firebase Analytics. There might be a way to temporarily adjust a Build Setting like the CocoaPods workaround, but that wouldn't be very stable. I'll follow up with the Analytics team to see if we can eliminate the sign up requirement so that we could include the Analytics Catalyst Early Access with SPM.

All, I'll reiterate the request to open a new issue for specific issues/questions like these ones. Thanks!

_Originally posted by @paulb777 in https://github.com/firebase/firebase-ios-sdk/issues/3136#issuecomment-678784372_

Is there a resolution for this so we can selectively build for Catalyst until google finally makes analytics work properly on macOS? I didn't want to make a separate issue but unfortunately the original one was locked.

Catalyst Swift Package Manager analytics

Most helpful comment

I have same issue, I used FirebaseAnalytics with SwiftPM then I can't use catalyst and I can't disable FirebaseAnalytics for it

All 9 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@EliteTechnicalCare Thanks for the report. I retitled the issue. Does the new title still reflect the issue accurately? And you want to link FirebaseAnalytics for the iOS build and not for the Catalyst build?

I would also like to know. I've tried settings that Platforms to iOS only in Frameworks, Libraries, and Embedded Content settings, but that doesn't work.

Yea for now I literally had to strip analytics entirely from my app because the build process was far too tedious. Another obvious solution would be for Google to simply support catalyst/macOS for Analytics, admob, etc and then that way we dont have to play Simon says every time we want to build/archive.

Frankly it's been what, 2 years? And still no support?

I have same issue, I used FirebaseAnalytics with SwiftPM then I can't use catalyst and I can't disable FirebaseAnalytics for it

Yea for now I literally had to strip analytics entirely from my app because the build process was far too tedious.

@EliteTechnicalCare how did you strip just Analytics? Are you using CocoaPods? or SwiftPM?

Yea for now I literally had to strip analytics entirely from my app because the build process was far too tedious.

@EliteTechnicalCare how did you strip just Analytics? Are you using CocoaPods? or SwiftPM?

SwiftPM, I literally just removed Analytics entirely from my project. The data I was getting wasn't worth the massive headache, and our app doesn't rely on ads or anything like that so it was an easy decision to just discontinue analytics for the time being.

@EliteTechnicalCare that's exactly what I'm trying to do. I'm not importing Analytics from anywhere in the project, and when adding Firebase to SwiftPM (managed by Xcode), I didn't select Analytics. It looks like it gets installed by itself when you add other Firebase components.

Could you give me a rough idea of how you were able to remove it?

Thanks!!

Was this page helpful?
0 / 5 - 0 ratings