I added a swift class in my existing Objective-C project and was trying to import bridging header file of the form #import <ProductName/ProductModuleName-Swift.h>
in some existing obj-c classes. But I got error that the header file is not found. I have put the correct Product name and Product Module Name but still I have no clue what exactly I am doing wrong. Also, I got this error: Umbrella header 'ProductName-umbrella.h' not found.
Is bridging header file automatically generated while adding a Swift file to an objective-C project?
Asked
Active
Viewed 234 times
0

Sagarika Barman
- 105
- 9
-
Please check https://stackoverflow.com/questions/24102104/how-to-import-swift-code-to-objective-c – Avaan Mar 22 '18 at 09:52
-
Change Defines Module in build settings to yes. – Saranjith Mar 23 '18 at 11:14