0

I have added Objective c files to swift , I am getting following error :

Opening import file for module 'Swift': Not a directory

enter image description here

Payal Maniyar
  • 4,293
  • 3
  • 25
  • 51
Ravi
  • 104
  • 2
  • 14

2 Answers2

1

Go to the build settings for ALL targets (including the actual project) and remove any erroneous paths from Framework Search Path.

Specifically:

Simplified the main target to:

$(inherited)

$(SRCROOT)

May be it will help you.

0

create (ProjectName-Bridging-Header.h) to your project root directory and there is no need to import objective c file to swift file and all the objective c files need to be import in (ProjectName-Bridging-Header.h) hope that will solve your problem.

for more info visit Xcode not automatically creating bridging header?

Community
  • 1
  • 1
Amit Jagesha シ
  • 1,092
  • 12
  • 21