Ver Fonte

Don't generate missing Analytics warning on Catalyst (#7719)

Paul Beusterien há 5 anos atrás
pai
commit
79645640c2
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 1
      CoreOnly/Sources/Firebase.h
  2. 1 0
      FirebaseRemoteConfig/CHANGELOG.md

+ 1 - 1
CoreOnly/Sources/Firebase.h

@@ -103,7 +103,7 @@ FirebaseAnalytics dependency to your project to ensure Messaging works as intend
 
   #if __has_include(<FirebaseRemoteConfig/FirebaseRemoteConfig.h>)
     #import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
-    #if TARGET_OS_IOS && !__has_include(<FirebaseAnalytics/FirebaseAnalytics.h>)
+    #if TARGET_OS_IOS && !TARGET_OS_CATALYST && !__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 Remote Config works as intended."

+ 1 - 0
FirebaseRemoteConfig/CHANGELOG.md

@@ -1,5 +1,6 @@
 # v7.9.0
 - [added] Enabled community supported watchOS build in Swift Package Manager. (#7696)
+- [fixed] Don't generate missing Analytics warning on Catalyst. (#7693)
 
 # v7.8.0
 - [fixed] Store fetch metadata per namespace to address activation issues. (#7179)