'AWSAPIGateway/AWSAPIGateway.h' file not found

I'm importing the AWS Mobile SDK into a Swift project and I'm getting the error when I build the project:

'AWSAPIGateway/AWSAPIGateway.h' file not found

At first it couldn't find the bridging_header file and that was the first error I got and so I manually duplicated the file and now this is the new error I have.

This is a XCode bug which nobody take care of. Not sure how to fix it.

Cleaned DerivedData, restart Xcode, and somehow it works after a while.

'AWSAPIGateway/AWSAPIGateway.h' file not found
 
 
Q