Not being able to find the generated header suggests to me that whatever target contains the import LibSwiftClone
has an unexpressed dependency on it. The generated header will be created as part of building that module, so if the dependency is missing, it isn't guaranteed to happen before the client code is built.