Swift to Objective-C header not created in Xcode 6: how to fix?
Hello! I'm new to iOS development and trying to use Swift together with Objective-C in my Xcode 6 project. I created a new Swift project and then added several Objective-C files to it. Xcode automatically offered to create a bridging header, and I agreed. But the problem is that the header file "ProjectName-Swift.h" (which should be generated automatically for accessing Swift classes from Objective-C) is not created. I checked the build settings: in Build Settings, the "Objective-C Generated Interface Header Name" parameter is empty, although, as I read, it should be filled by default. I also tried rebuilding the project, cleaning the cache (Clean Build Folder), restarting Xcode — nothing helps.
Here is an example of my Swift class that I want to make visible from Objective-C:
No answers yet.
Log in to leave an answer