3

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?

Community
  • 1
  • 1
hasan
  • 23,815
  • 10
  • 63
  • 101
  • It might also be worth posting this on GitHub as an issue for Firebase. The developers are good at answering questions on there or fixing bugs if it is a bigger issue – Adam Richardson Aug 29 '18 at 10:48
  • Likely something triggered/exposed by uprevving GoogleTagManager by 4 major versions. I'd recommend seeing how 3.x and 7.x differ. – Paul Beusterien Aug 29 '18 at 15:21
  • @hasan Did you resolve this issue - I'm having the same problem – Ashley Mills Apr 09 '19 at 16:22
  • I don’t fully remember. But, what I recall that I ended up with removing it and using another one. Something related to there is a new library. – hasan Apr 09 '19 at 16:25

0 Answers0