ios - 'ProductModuleName-Swift.h' file not found -


i want use protocol method of swift class objective-c class have import 'productmodulename-swift.h' , declare protocol in interface shows error: 'productmodulename-swift.h' file not found.

but when import test.m file fine when import test.h shows error.

example:

test.h

#import "myproject-swift.h"  @interface test : uiviewcontroller<myswiftdelegate> 

or there way use protocol method of swift in obj-c class

thanks in advance.

go targets -> build settings -> swift compiler - code generation , make sure "objective-c bridging header" points correct place , "objective-c generated interface header name" correct file. header name unit tests defaulted module-nametest-swift.h needed remove "test" title.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -