Closed
Description
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.2
- Firebase SDK version: 7.2.0
- Installation method:
Swift Package Manager
- Firebase Component: Analytics
[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:
- Integrate FirebaseAnalytics 7.2.0
- Try to use the
setConsent
method. - Try to build your app
Xcode will now complain that:
Type 'Analytics' has no member 'setConsent'
Relevant Code:
import FirebaseAnalytics ...Analytics.setConsent([.adStorage:.denied,.analyticsStorage:.denied])