Nyne99
Nyne99

Reputation: 31

"ProjectName-Swift.h" file not found - Share Extension

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

Answers (1)

Rob
Rob

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":

headers

Also, that header isn't generated until you compile, so do a "Product" - "Clean" and "Product" - "Build".

Upvotes: 4

Related Questions