I have a working swift application with GoogleTagManager and Firebase/Analytics pods installed using Cocoapods.
pod 'Firebase/Analytics'
pod 'GoogleTagManager', '~> 3.0'
My bridging header file imports the tag manager libraries:
#import <GoogleTagManager/TAGManager.h> <-- line that is causing the first error.
#import <GoogleTagManager/TAGContainer.h>
#import <GoogleTagManager/TAGContainerOpener.h>
#import <GoogleTagManager/TAGDataLayer.h>
#import <GoogleTagManager/TAGLogger.h>
Builds successfully and runs with no problems.
I am trying to update both the firebase and tag manager pods. modified the pod file as the following:
pod 'Firebase/Analytics', '~> 5.1'
pod 'GoogleTagManager', '~> 7.1.1'
Then, I ran:
pod update GoogleTagManager
and pod update Firebase/Analytics
.
Suddenly now I have 2 compilation errors:
'GoogleTagManager/TAGManager.h' file not found
failed to emit precompiled header '/blabla.pch' for bridging header '/blabla/Bridging-Header.h'
I only updated the pods what would be the thing that caused the problem?