Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update my pod causes error in GoogleDataTransport Umbrella header

I've just updated my pod using "pod update" command and I use Firebase pod . I added new pod and when I compiled my project after that several errors appeared like this:

- Umbrella header for module 'GoogleDataTransport' does not include header 'GDTEventDataObject.h' - Umbrella header for module 'GoogleDataTransport' does not include header 'GDTClock.h' ... ... 

I - use swift5 - Xcode 11.0 - macOS 10.15

like image 213
Alganadi Mhd Hasan Avatar asked Oct 24 '19 11:10

Alganadi Mhd Hasan


People also ask

How do I update the swift pod in IOS?

Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods. Use pod update [PODNAME] only when you want to update pods to a newer version.

What is Googledatatransport?

This library is for internal Google use only. It allows the logging of data and telemetry from Google SDKs.

How do you update pods in Xcode?

Sometimes people suggest deleting the /Pods directory and the Podfile. lock file, then running pod install . This will solve any issues with Xcode, but will also upgrade each of the pods in the Podfile to its latest version*.


2 Answers

rm -rf ~/Library/Developer/Xcode/DerivedData/ pod deintegrate pod update 

The GoogleDataTransport references are lingering from old pod versions

like image 58
Paul Beusterien Avatar answered Sep 23 '22 03:09

Paul Beusterien


Adding onto Paul's answer: I also had to clear my Pod cache.

rm -rf ~/Library/Developer/Xcode/DerivedData/ rm -rf ~/Library/Caches/CocoaPods/ pod deintegrate pod update 

If you are using Flutter, you probably want to do the flutter clean too.

flutter clean 
like image 40
Carter Avatar answered Sep 23 '22 03:09

Carter