firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.65k stars 1.48k forks source link

`'FirebaseCore/FIRLogger.h' file not found` When using FirebaseInAppMessaging pod #10405

Closed kevinchau closed 2 years ago

kevinchau commented 2 years ago

Description

Under the FIRIAMServerMsgFetchStorage.m file, line 17 #import <FirebaseCore/FIRLogger.h> Will give error at buildtime 'FirebaseCore/FIRLogger.h' file not found

Reproducing the issue

Uncomment pod 'FirebaseInAppMessaging' from Podfile pod update pod install build

Firebase SDK Version

10.0.0

Xcode Version

14.0.1

Installation Method

CocoaPods

Firebase Product(s)

In-App Messaging

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml PODS: - FBAudienceNetwork (6.12.0) - FirebaseABTesting (10.0.0): - FirebaseCore (~> 10.0) - FirebaseAnalytics (10.0.0): - FirebaseAnalytics/AdIdSupport (= 10.0.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAnalytics/AdIdSupport (10.0.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleAppMeasurement (= 10.0.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAnalyticsInterop (1.5.0) - FirebaseCore (10.0.0): - FirebaseCoreInternal (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Logger (~> 7.8) - FirebaseCoreInternal (10.0.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" - FirebaseCrashlytics (10.0.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (~> 2.1) - FirebaseInAppMessaging (0.13.0): - FirebaseAnalytics - FirebaseAnalyticsInterop - FirebaseCore - FirebaseInstanceID - FirebaseInstallations (10.0.0): - FirebaseCore (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - PromisesObjC (~> 2.1) - FirebaseInstanceID (2.0.7) - FirebaseMessaging (10.0.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Reachability (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebasePerformance (10.0.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - FirebaseRemoteConfig (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/ISASwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseRemoteConfig (10.0.0): - FirebaseABTesting (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - Google-Mobile-Ads-SDK (9.12.0): - GoogleAppMeasurement (< 11.0, >= 7.0) - GoogleUserMessagingPlatform (>= 1.1) - GoogleAppMeasurement (10.0.0): - GoogleAppMeasurement/AdIdSupport (= 10.0.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/AdIdSupport (10.0.0): - GoogleAppMeasurement/WithoutAdIdSupport (= 10.0.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/WithoutAdIdSupport (10.0.0): - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleDataTransport (9.2.0): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - GoogleMobileAdsMediationFacebook (6.12.0.0): - FBAudienceNetwork (= 6.12.0) - Google-Mobile-Ads-SDK (~> 9.8) - GoogleUserMessagingPlatform (2.0.1) - GoogleUtilities/AppDelegateSwizzler (7.8.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - GoogleUtilities/Environment (7.8.0): - PromisesObjC (< 3.0, >= 1.2) - GoogleUtilities/ISASwizzler (7.8.0) - GoogleUtilities/Logger (7.8.0): - GoogleUtilities/Environment - GoogleUtilities/MethodSwizzler (7.8.0): - GoogleUtilities/Logger - GoogleUtilities/Network (7.8.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - "GoogleUtilities/NSData+zlib (7.8.0)" - GoogleUtilities/Reachability (7.8.0): - GoogleUtilities/Logger - GoogleUtilities/UserDefaults (7.8.0): - GoogleUtilities/Logger - nanopb (2.30909.0): - nanopb/decode (= 2.30909.0) - nanopb/encode (= 2.30909.0) - nanopb/decode (2.30909.0) - nanopb/encode (2.30909.0) - PromisesObjC (2.1.1) - SDWebImage (5.13.4): - SDWebImage/Core (= 5.13.4) - SDWebImage/Core (5.13.4) - Zephyr (3.4.2) DEPENDENCIES: - FirebaseAnalytics - FirebaseCore - FirebaseCrashlytics - FirebaseInAppMessaging - FirebaseMessaging - FirebasePerformance - FirebaseRemoteConfig - Google-Mobile-Ads-SDK - GoogleMobileAdsMediationFacebook - SDWebImage - Zephyr (from `https://github.com/ArtSabintsev/Zephyr.git`, branch `swift5.0`) SPEC REPOS: trunk: - FBAudienceNetwork - FirebaseABTesting - FirebaseAnalytics - FirebaseAnalyticsInterop - FirebaseCore - FirebaseCoreInternal - FirebaseCrashlytics - FirebaseInAppMessaging - FirebaseInstallations - FirebaseInstanceID - FirebaseMessaging - FirebasePerformance - FirebaseRemoteConfig - Google-Mobile-Ads-SDK - GoogleAppMeasurement - GoogleDataTransport - GoogleMobileAdsMediationFacebook - GoogleUserMessagingPlatform - GoogleUtilities - nanopb - PromisesObjC - SDWebImage EXTERNAL SOURCES: Zephyr: :branch: swift5.0 :git: https://github.com/ArtSabintsev/Zephyr.git CHECKOUT OPTIONS: Zephyr: :commit: 3d708c3c087058dc80aba03c00c6a27f52649e75 :git: https://github.com/ArtSabintsev/Zephyr.git SPEC CHECKSUMS: FBAudienceNetwork: e0fcc9091fced34910ed0b6da06f129db46ac9e6 FirebaseABTesting: 5a08a4d3060b7fb5638f60698bc2cb57996bcc73 FirebaseAnalytics: 9921a52739f4ab66099da31b6e0243db78a3ac0a FirebaseAnalyticsInterop: 3f86269c38ae41f47afeb43ebf32a001f58fcdae FirebaseCore: 97f48a3a567a72b8d4daa0f03c3aadb78df4e995 FirebaseCoreInternal: 5eb3960335da5ea30115d57d39db6988c4ad06f3 FirebaseCrashlytics: 6b0613b548fe096221b5ba6d2f7a9732b451233b FirebaseInAppMessaging: 25e8c4408829928b6727fb461e0aef6a43111467 FirebaseInstallations: 7f1c9ae6bd9df6abe9c74124b38fa8740aba5df4 FirebaseInstanceID: 148c25c986c8699e67304b114e365713dce467f2 FirebaseMessaging: 8916bf5edb1dbfac74665a181e4d1ab3a78a08a2 FirebasePerformance: e4b0043929860c10b7b123331be9cdd33100a866 FirebaseRemoteConfig: e4431ddba74ddf705e2aabd7d356a23d5b802853 Google-Mobile-Ads-SDK: b4e9efb765ef1693ae9dd94c527b6c1d91ee5052 GoogleAppMeasurement: 7e48a3249792ac35d6f18f107f63f199a7e9d0ce GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleMobileAdsMediationFacebook: 8c64904ac98459c8819cf07de3e15d5663b3d8ec GoogleUserMessagingPlatform: 5f8b30daf181805317b6b985bb51c1ff3beca054 GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7 nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb SDWebImage: e5cc87bf736e60f49592f307bdf9e157189298a3 Zephyr: 2ddb59dafa15e9d2d6180111ed509e216065f88c PODFILE CHECKSUM: 60cdf74981cc32f40961e5aa076dcdf17a3bec33 COCOAPODS: 1.11.3 ```
google-oss-bot commented 2 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulb777 commented 2 years ago

Update the Podfile to specify a recent version of FirebaseInAppMeasurement:

pod 'FirebaseInAppMessaging', "> 10.0-beta"

kevinchau commented 2 years ago

pod 'FirebaseInAppMessaging', "> 10.0-beta"

@paulb777 Thanks this worked.