'Swift Bridging Header File Not Found

I'm having some trouble importing some headers from CocoaPods and an external library (ConnectSDK) into my bridging header.

I'm getting the following error:

'MZFormSheetPresentationController/MZFormSheetPresentationController Swift Example-Bridging-Header.h' file not found

My Pods framework is weakly linked to my target.

Any help really appreciated, scratching my head with this.

UPDATE: Below is my bridging header

#ifndef _Bridge_h
#define _Bridge_h

#import <GoogleCast/GoogleCast.h>
#import <MZFormSheetPresentationController/MZFormSheetPresentationController Swift Example-Bridging-Header.h>
#import <ConnectSDK/ConnectSDK.h>
#import <ConnectSDK/CastService.h>
#import <ConnectSDK/CastDiscoveryProvider.h>
#import <ConnectSDK/DIALService.h>
#import <ConnectSDK/SSDPDiscoveryProvider.h>
#import <ConnectSDK/RokuService.h>
#import <ConnectSDK/DLNAService.h>
#import <ConnectSDK/WebOSTVService.h>
#import <ConnectSDK/FireTVService.h>
#import <ConnectSDK/FireTVDiscoveryProvider.h>
#import <TUSafariActivity/TUSafariActivity.h>

#endif


Solution 1:[1]

I've done the following with success before.

  1. Save a new copy of your project to avoid losing any important data.
  2. Remove the files Xcode is complaining about from your project and then build your project.
  3. Click your root project > select targets

enter image description here

  1. and scroll down until you see this:

enter image description here

Remove the reference to your bridging header, build and re-add your files.

Solution 2:[2]

Change PRODUCT MODULE NAME value same as main target has

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dan Beaulieu
Solution 2 xevser