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
  • 25,505
  • 44
  • 151
  • 277

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
  • 25,505
  • 44
  • 151
  • 277