firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.55k stars 1.45k forks source link

How to use FirebaseAnalyticsWithoutAdIdSupport (SPM)? #12251

Closed Janneman84 closed 7 months ago

Janneman84 commented 8 months ago

Description

I recently migrated Firebase from pods to SPM. Ever since I'm getting no more analytics data in my dashboard.

I have to use analytics without ad id support, so I picked the special FirebaseAnalyticsWithoutAdIdSupport package instead of the regular FirebaseAnalytics. When testing this works fine according to the console and I'm also getting some activity in the realtime dashboard. However once released I get nothing...

This makes me wonder, should I include both FirebaseAnalyticsWithoutAdIdSupport ánd the regular FirebaseAnalytics instead? And how about FirebaseAnalyticsSwift? I couldn't find any clear instructions on this.

Anyone care to clarify?

Reproducing the issue

Install Firebase through SPM, only select FirebaseAnalyticsWithoutAdIdSupport package.

Firebase SDK Version

10.8.0

Xcode Version

15.1

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics, Crashlytics, Messaging

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json { "pins" : [ { "identity" : "abseil-cpp-binary", "kind" : "remoteSourceControl", "location" : "https://github.com/google/abseil-cpp-binary.git", "state" : { "revision" : "bfc0b6f81adc06ce5121eb23f628473638d67c5c", "version" : "1.2022062300.0" } }, { "identity" : "app-check", "kind" : "remoteSourceControl", "location" : "https://github.com/google/app-check.git", "state" : { "revision" : "5746b2d35c91c50581590ed97abe4c06b5037274", "version" : "10.18.0" } }, { "identity" : "datacache", "kind" : "remoteSourceControl", "location" : "https://github.com/huynguyencong/DataCache", "state" : { "revision" : "cdef39b1f7f539ff722e7954746b2876ef12178c", "version" : "1.7.0" } }, { "identity" : "dswaveformimage", "kind" : "remoteSourceControl", "location" : "https://github.com/dmrschmidt/DSWaveformImage", "state" : { "revision" : "e670b8da140c39036f171b9754ed25126b8d414b", "version" : "13.0.2" } }, { "identity" : "dznemptydataset", "kind" : "remoteSourceControl", "location" : "https://github.com/dzenbot/DZNEmptyDataSet", "state" : { "branch" : "master", "revision" : "9bffa69a83a9fa58a14b3cf43cb6dd8a63774179" } }, { "identity" : "firebase-ios-sdk", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/firebase-ios-sdk.git", "state" : { "revision" : "5de0369ee79ad096c164eb3afeb7921d92a43b58", "version" : "10.18.0" } }, { "identity" : "googleappmeasurement", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleAppMeasurement.git", "state" : { "revision" : "6b332152355c372ace9966d8ee76ed191f97025e", "version" : "10.17.0" } }, { "identity" : "googledatatransport", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleDataTransport.git", "state" : { "revision" : "aae45a320fd0d11811820335b1eabc8753902a40", "version" : "9.2.5" } }, { "identity" : "googleutilities", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleUtilities.git", "state" : { "revision" : "bc27fad73504f3d4af235de451f02ee22586ebd3", "version" : "7.12.1" } }, { "identity" : "grpc-binary", "kind" : "remoteSourceControl", "location" : "https://github.com/google/grpc-binary.git", "state" : { "revision" : "a673bc2937fbe886dd1f99c401b01b6d977a9c98", "version" : "1.49.1" } }, { "identity" : "grpc-swift", "kind" : "remoteSourceControl", "location" : "https://github.com/grpc/grpc-swift.git", "state" : { "revision" : "663a85221ecf93e4b8fb1f0fdd34d4b27ae78665", "version" : "1.20.0" } }, { "identity" : "gtm-session-fetcher", "kind" : "remoteSourceControl", "location" : "https://github.com/google/gtm-session-fetcher.git", "state" : { "revision" : "d415594121c9e8a4f9d79cecee0965cf35e74dbd", "version" : "3.1.1" } }, { "identity" : "hcvimeovideoextractor", "kind" : "remoteSourceControl", "location" : "https://github.com/superm0/HCVimeoVideoExtractor.git", "state" : { "revision" : "7f985183fe60dd66a366f67d9475c45938608b1a", "version" : "0.0.4" } }, { "identity" : "inputbaraccessoryview", "kind" : "remoteSourceControl", "location" : "https://github.com/nathantannar4/InputBarAccessoryView", "state" : { "revision" : "17ced92a5dccb36512b408b6276353631d7cbe57", "version" : "6.3.0" } }, { "identity" : "interop-ios-for-google-sdks", "kind" : "remoteSourceControl", "location" : "https://github.com/google/interop-ios-for-google-sdks.git", "state" : { "revision" : "2d12673670417654f08f5f90fdd62926dc3a2648", "version" : "100.0.0" } }, { "identity" : "leveldb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/leveldb.git", "state" : { "revision" : "9d108e9112aa1d65ce508facf804674546116d9c", "version" : "1.22.3" } }, { "identity" : "messagekit", "kind" : "remoteSourceControl", "location" : "https://github.com/MessageKit/MessageKit", "state" : { "revision" : "1993e8e90d4e9a61b8d9bc8ceb733964ce943376", "version" : "4.2.0" } }, { "identity" : "nanopb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/nanopb.git", "state" : { "revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", "version" : "2.30909.0" } }, { "identity" : "promises", "kind" : "remoteSourceControl", "location" : "https://github.com/google/promises.git", "state" : { "revision" : "e70e889c0196c76d22759eb50d6a0270ca9f1d9e", "version" : "2.3.1" } }, { "identity" : "reachability.swift", "kind" : "remoteSourceControl", "location" : "https://github.com/ashleymills/Reachability.swift", "state" : { "revision" : "c01bbdf2d633cf049ae1ed1a68a2020a8bda32e2", "version" : "5.1.0" } }, { "identity" : "swift-atomics", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-atomics.git", "state" : { "revision" : "cd142fd2f64be2100422d658e7411e39489da985", "version" : "1.2.0" } }, { "identity" : "swift-collections", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections.git", "state" : { "revision" : "a902f1823a7ff3c9ab2fba0f992396b948eda307", "version" : "1.0.5" } }, { "identity" : "swift-http-types", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-http-types", "state" : { "revision" : "1827dc94bdab2eb5f2fc804e9b0cb43574282566", "version" : "1.0.2" } }, { "identity" : "swift-log", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { "revision" : "532d8b529501fb73a2455b179e0bbb6d49b652ed", "version" : "1.5.3" } }, { "identity" : "swift-nio", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio.git", "state" : { "revision" : "702cd7c56d5d44eeba73fdf83918339b26dc855c", "version" : "2.62.0" } }, { "identity" : "swift-nio-extras", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-extras.git", "state" : { "revision" : "798c962495593a23fdea0c0c63fd55571d8dff51", "version" : "1.20.0" } }, { "identity" : "swift-nio-http2", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-http2.git", "state" : { "revision" : "3bd9004b9d685ed6b629760fc84903e48efec806", "version" : "1.29.0" } }, { "identity" : "swift-nio-ssl", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-ssl.git", "state" : { "revision" : "320bd978cceb8e88c125dcbb774943a92f6286e9", "version" : "2.25.0" } }, { "identity" : "swift-nio-transport-services", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-nio-transport-services.git", "state" : { "revision" : "ebf8b9c365a6ce043bf6e6326a04b15589bd285e", "version" : "1.20.0" } }, { "identity" : "swift-protobuf", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf.git", "state" : { "revision" : "07f7f26ded8df9645c072f220378879c4642e063", "version" : "1.25.1" } }, { "identity" : "tocropviewcontroller", "kind" : "remoteSourceControl", "location" : "https://github.com/TimOliver/TOCropViewController", "state" : { "revision" : "d0470491f56e734731bbf77991944c0dfdee3e0e", "version" : "2.6.1" } }, { "identity" : "youtube-ios-player-helper", "kind" : "remoteSourceControl", "location" : "https://github.com/youtube/youtube-ios-player-helper.git", "state" : { "revision" : "f57129cd4380ec0a74dd3a59da3270a1d653d59b", "version" : "1.0.4" } } ], "version" : 2 } ```

If using CocoaPods, the project's Podfile.lock

No response

google-oss-bot commented 8 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulb777 commented 8 months ago

Is -ObjC added to the linker options? https://github.com/firebase/firebase-ios-sdk/blob/main/SwiftPackageManager.md#swift-package-manager-for-firebase

Janneman84 commented 8 months ago

I read about this flag before in an old post somewhere. I thought it was just something outdated. It didn't seem to make a difference in debug builds, which appeared to be working either way (which is what puzzles me most).

Anyway I added the flag now and will release soon. I'll probably know if it worked at the end of the week.

google-oss-bot commented 7 months ago

Hey @Janneman84. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

Janneman84 commented 7 months ago

I did a phased release last week. The Analytics data now seems to work as normal again👌, thanks!