You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set the consent mode in the latest FirebaseAnalytics using the setConsent(_:) method as documented here. Xcode complains, that the method cannot be found. It worked in 7.1.0.
Looking inside the FirebaseAnalytics.xcframework, I can see that the header file declaring the method is there. But it is not included in the umbrella header. Because of that it cannot be used from swift, by just importing FirebaseAnalytics.
Sorry for the issues and thanks for the report. Our ZipBuilder tool uses CocoaPods under the hood and it looks like the bug with a missing -ObjC flag may be hit, causing this. I'll see if we can publish a new patch with the fix soon.
In the meantime, @MapaX discovered a workaround: if you add the #import "FIRAnalytics+Consent.h" to Headers/FirebaseAnalytics.h it should work for now. (from #7117 (comment))
[REQUIRED] Step 1: Describe your environment
Swift Package Manager
[REQUIRED] Step 2: Describe the problem
I'm trying to set the consent mode in the latest FirebaseAnalytics using the
setConsent(_:)
method as documented here. Xcode complains, that the method cannot be found. It worked in 7.1.0.Looking inside the FirebaseAnalytics.xcframework, I can see that the header file declaring the method is there. But it is not included in the umbrella header. Because of that it cannot be used from swift, by just importing
FirebaseAnalytics
.Steps to reproduce:
setConsent
method.Xcode will now complain that:
Relevant Code:
The text was updated successfully, but these errors were encountered: