Duplicate interface definition for class 'Segmentation' error while building in Xcode 11.4.1

I’ve been facing a peculiar issue while building my app on Xcode 11.4.1. I’m on the latest version of the Fritz(version 5.3.5) iOS SDK.
This is the error message I’m getting:
Duplicate interface definition for class 'Segmentation'. This is happening in the Fritz-Swift.h file.

Another error message I’m also getting that might be useful for debugging is could not build Objective-C module 'Fritz'.

This was a bug in Fritz 5.3.5. We have fixed the issue and you should be able to build your app using Fritz SDK 5.3.7 or later.

When upgrading:

  1. Update your Fritz SDK pod: pod 'Fritz', '~> 5.3.7'
  2. Run pod repo update
  3. Run pod install
  4. Clean your build
  5. Delete derived data
  6. Rebuild your project