ProductName-Swift.h not found when adding a dependency

Hi,


I think my problem is very particular because I have been looking everywhere and haven't found a clear answer.


So here's my problem:

- I created a framework using Swift (it also has some Objective C code, but it's mainly Swift)

- I have an old project which I recently started to modernize and I have added some Swift classes to it


I created a precompiled header so that I don't need to #import "ProductName-Swift.h" everytime.


Everything was working fine until I decided to add the framework as a dependency of this other project.


When I did that Xcode gave me an error saying that "ProductName-Swift.h" could not be found.


I have no idea why this happens, as when I don't add the framework it can find it perfectly.


The framework has the Defines Module setting set to Yes and I think all other settings are OK.


I hope somebody can help me out.


Thanks in advance!

Fixed it. I had to forward declare some classes so some errors would go away. Once I did that the swift.h header was found.

ProductName-Swift.h not found when adding a dependency
 
 
Q