Skip to content

FirebasePerformance SDK warns that FirebaseAnalytics should be included #7487

@kaganriedel

Description

@kaganriedel

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.4
  • Firebase SDK version: 7.5
  • Installation method: CocoaPods
  • Firebase Component: Performance, though I also have Crashlytics installed.

[REQUIRED] Step 2: Describe the problem

Firebase.h generates a warning when FirebasePerformance is included but FirebaseAnalytics isn't included in the project. This contradicts the SDK's documentation.

The table in this section does not list Analytics as required for the Performance SDK. Additionally my experience so far has been that the Performance SDK has been working just fine without Analytics included.

Steps to reproduce:

  1. Include the Firebase Performance SDK in a project that does not include the Analytics SDK.
  2. In case it matters, I installed the SDK using CocoaPods and also have the Crashlytics SDK included in the project.
  3. Build the app.
  4. Note the warning "FirebaseAnalytics.framework is not included in your target. Please add the \ FirebaseAnalytics dependency to your project to ensure Firebase Performance works as intended."

Relevant Code:

It seems like these lines are incorrect and should be removed, or the documentation in the SDK is incorrect.

 #if __has_include(<FirebasePerformance/FirebasePerformance.h>) #import <FirebasePerformance/FirebasePerformance.h> #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>) #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING #warning "FirebaseAnalytics.framework is not included in your target. Please add the \ FirebaseAnalytics dependency to your project to ensure Firebase Performance works as intended." #endif // #ifndef FIREBASE_ANALYTICS_SUPPRESS_WARNING #endif #endif 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close