Skip to content

The FIRAnalytics(Consent) category is not part of the umbrella header in 7.2.0 #7114

Closed
@kaybutter

Description

@kaybutter

[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:

  1. Integrate FirebaseAnalytics 7.2.0
  2. Try to use the setConsent method.
  3. 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])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close