5

I want to use my Swift files in Objective-C code. I found different link that say how to do it.

My project name is: Test-Project.

I imported #import "Test-Project-Swift.h" to my .m file to use needed classed in objective c source code.

I watched this video and there is no problem, but I have 'Test-Project-Swift.h' file not found.

Matrosov Oleksandr
  • 23,195
  • 44
  • 142
  • 269

1 Answers1

0

As we recognized: It looks like the problem with "-" we need to change it to "_" - "Test_Project-Swift.h". I've checked Objective-C Generated Interface Header Name in the project settings.

Matrosov Oleksandr
  • 23,195
  • 44
  • 142
  • 269