Reputation: 31
We've been mixing swift with our mostly Obj-C project and it has been working fine. But when I need to add a .m file to the build phases of my extension that is importing "ProjectName-Swift.h", the extension cannot find that file. How can I fix this?
Upvotes: 3
Views: 2640
Reputation: 438232
You should double check your target settings, to make sure it's configured to generate the header and that the name of the header is supplied. You can find these settings quickly if you enter "header" in the search bar in the "Build Settings":
Also, that header isn't generated until you compile, so do a "Product" - "Clean" and "Product" - "Build".
Upvotes: 4