0

I am trying to access a few Swift files in my project from an Obj-C .m file. The project I'm working on is in Swift 2.2 on Xcode 7.3.1 and has the necessary file below.

"MyProductName-Swift.h"

The problem is, when I create a new Swift file, it is not getting added to the "MyProductName-Swift.h" file. I have also deleted the Derived Data folder and cleaned my project.

I have gone over some other articles already, including the ones below.

Importing Swift into Objective-C

Importing Project-Swift.h into a Objective-C class...file not found

How to import Swift code to Objective-C

Casey West
  • 578
  • 5
  • 22

1 Answers1

0

This issue was due to me not being used to adding .swift files manually to the Compile Sources in Build Phases. Once I added the files where they needed to be it was resolved.

Casey West
  • 578
  • 5
  • 22