Skip to content

Commit

Permalink
Make missing analytics a warning instead of error (#1653)
Browse files Browse the repository at this point in the history
* Improve missing Analytics message
  • Loading branch information
paulb777 committed Aug 9, 2018
1 parent d4cdb50 commit 6c30f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Firebase/Core/FIRApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ - (BOOL)configureCore {
if ([self.name isEqualToString:kFIRDefaultAppName]) {
Class firAnalyticsClass = NSClassFromString(@"FIRAnalytics");
if (!firAnalyticsClass) {
FIRLogError(kFIRLoggerCore, @"I-COR000022", @"Firebase Analytics is not available.");
FIRLogWarning(kFIRLoggerCore, @"I-COR000022",
@"Firebase Analytics is not available. To add it, include Firebase/Core in the "
@"Podfile or add FirebaseAnalytics.framework to the Link Build Phase");
} else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
Expand Down

0 comments on commit 6c30f47

Please sign in to comment.