Reputation: 195
I've to use some .swift file into my objctiveC project.when I'm trying to add the swift files into bundle, the productodule-swift.h file not getting generated instead its generating bridging header file.I've changed my project settings DEFINES_MODULE to YES and PRODUCT_MODULE to myprojectnameModule...but no use...is there anything I'm doing wrong.please suggest me...thanks in advance
Upvotes: 1
Views: 149
Reputation: 195
MyProductName-Bridging-header.h,MyProductName-Swift.h both are generated when importing a .swift file for the first time.
MyProductName-Swift.h file is not visible but exists in project.Never Delete MyProductName-bridging-header.h file
Settings DEFINES_MODULE should be YES and PRODUCT_MODULE should be MyProductName.
Add # import "MyProductName-Swift.h" in your objective-c class.
Upvotes: 1